Removed joystick axis value negation.

This commit is contained in:
Camilla Berglund
2013-10-17 20:08:56 +02:00
parent d78510457c
commit e576bdc894
3 changed files with 4 additions and 11 deletions
-9
View File
@@ -125,15 +125,6 @@ static void pollJoystickEvents(void)
case JS_EVENT_AXIS:
_glfw.x11.joystick[i].axes[e.number] =
(float) e.value / 32767.0f;
// We need to change the sign for the Y axes, so that
// positive = up/forward, according to the GLFW spec.
if (e.number & 1)
{
_glfw.x11.joystick[i].axes[e.number] =
-_glfw.x11.joystick[i].axes[e.number];
}
break;
case JS_EVENT_BUTTON: