IsButtonBind should check for buttons, not axes

This commit is contained in:
thefiddler 2013-12-25 01:47:27 +01:00
parent b4b8bc1665
commit f7fbf38c43

View file

@ -159,7 +159,7 @@ namespace OpenTK.Platform.SDL2
{
GameControllerButtonBind bind =
SDL.GameControllerGetBindForButton(gamecontroller, button);
return bind.BindType == GameControllerBindType.Axis;
return bind.BindType == GameControllerBindType.Button;
}
#endregion