IsButtonBind should check for buttons, not axes
authorthefiddler <stapostol@gmail.com>
Wed, 25 Dec 2013 00:47:27 +0000 (01:47 +0100)
committerthefiddler <stapostol@gmail.com>
Wed, 25 Dec 2013 00:47:27 +0000 (01:47 +0100)
Source/OpenTK/Platform/SDL2/Sdl2JoystickDriver.cs

index 7e5cd95..5d014d0 100644 (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