mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-22 10:41:07 +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])
|
||||
{
|
||||
case 'a':
|
||||
return new GamePadConfigurationSource(true, ParseAxis(item));
|
||||
return new GamePadConfigurationSource(isAxis:true, index:ParseAxis(item));
|
||||
|
||||
case 'b':
|
||||
return new GamePadConfigurationSource(false, ParseButton(item));
|
||||
return new GamePadConfigurationSource(isAxis:false, index:ParseButton(item));
|
||||
|
||||
case 'h':
|
||||
{
|
||||
|
|
|
@ -36,10 +36,10 @@ namespace OpenTK.Input
|
|||
JoystickHat? map_hat;
|
||||
HatPosition? map_hat_position;
|
||||
|
||||
public GamePadConfigurationSource(bool axis, int index)
|
||||
public GamePadConfigurationSource(bool isAxis, int index)
|
||||
: this()
|
||||
{
|
||||
if (axis)
|
||||
if (isAxis)
|
||||
{
|
||||
Type = ConfigurationType.Axis;
|
||||
Axis = index;
|
||||
|
|
Loading…
Reference in a new issue