Change: Tweak GamePadConfigurationSource constructor to be clearer

This commit is contained in:
Christopher Lees 2017-07-10 11:19:56 +01:00
parent d00a2f982d
commit 5abbd6c57c
2 changed files with 4 additions and 4 deletions

View file

@ -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':
{

View file

@ -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;