From 589065695398c82fa18a450740ded7cc1c499df3 Mon Sep 17 00:00:00 2001 From: Christopher Lees Date: Fri, 10 Feb 2017 14:24:58 +0000 Subject: [PATCH] Fix: Xbox controller D-Pad not working under Windows --- src/OpenTK/Platform/Windows/XInputJoystick.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenTK/Platform/Windows/XInputJoystick.cs b/src/OpenTK/Platform/Windows/XInputJoystick.cs index 0ffed2a7..dcec8048 100644 --- a/src/OpenTK/Platform/Windows/XInputJoystick.cs +++ b/src/OpenTK/Platform/Windows/XInputJoystick.cs @@ -130,7 +130,7 @@ namespace OpenTK.Platform.Windows int buttons = TranslateButtons(xcaps.GamePad.Buttons); int axes = TranslateAxes(ref xcaps.GamePad); - return new JoystickCapabilities(axes, buttons, 0, true); + return new JoystickCapabilities(axes, buttons, 1, true); } return new JoystickCapabilities(); }