mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-22 13:31:01 +00:00
Change: Tweak GamePadConfigurationSource constructor to be clearer
This commit is contained in:
parent
d00a2f982d
commit
5abbd6c57c
|
@ -155,10 +155,10 @@ namespace OpenTK.Input
|
||||||
switch (item[0])
|
switch (item[0])
|
||||||
{
|
{
|
||||||
case 'a':
|
case 'a':
|
||||||
return new GamePadConfigurationSource(true, ParseAxis(item));
|
return new GamePadConfigurationSource(isAxis:true, index:ParseAxis(item));
|
||||||
|
|
||||||
case 'b':
|
case 'b':
|
||||||
return new GamePadConfigurationSource(false, ParseButton(item));
|
return new GamePadConfigurationSource(isAxis:false, index:ParseButton(item));
|
||||||
|
|
||||||
case 'h':
|
case 'h':
|
||||||
{
|
{
|
||||||
|
|
|
@ -36,10 +36,10 @@ namespace OpenTK.Input
|
||||||
JoystickHat? map_hat;
|
JoystickHat? map_hat;
|
||||||
HatPosition? map_hat_position;
|
HatPosition? map_hat_position;
|
||||||
|
|
||||||
public GamePadConfigurationSource(bool axis, int index)
|
public GamePadConfigurationSource(bool isAxis, int index)
|
||||||
: this()
|
: this()
|
||||||
{
|
{
|
||||||
if (axis)
|
if (isAxis)
|
||||||
{
|
{
|
||||||
Type = ConfigurationType.Axis;
|
Type = ConfigurationType.Axis;
|
||||||
Axis = index;
|
Axis = index;
|
||||||
|
|
Loading…
Reference in a new issue