mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 10:48:51 -05:00
Removed joystick axis value negation on OS X.
This commit is contained in:
parent
b410cff68c
commit
b13c84f854
|
@ -64,6 +64,7 @@ guide in the GLFW documentation.
|
||||||
differently from the Khronos `glext.h`
|
differently from the Khronos `glext.h`
|
||||||
- [Cocoa] Bugfix: Creating hidden windows would steal application focus
|
- [Cocoa] Bugfix: Creating hidden windows would steal application focus
|
||||||
- [Cocoa] Bugfix: Controllers were reported as having zero buttons and axes
|
- [Cocoa] Bugfix: Controllers were reported as having zero buttons and axes
|
||||||
|
- [Cocoa] Bugfix: Removed joystick axis value negation left over from GLFW 2
|
||||||
- [X11] Added setting of the `WM_CLASS` property to the initial window title
|
- [X11] Added setting of the `WM_CLASS` property to the initial window title
|
||||||
- [X11] Bugfix: Removed joystick axis value negation left over from GLFW 2
|
- [X11] Bugfix: Removed joystick axis value negation left over from GLFW 2
|
||||||
- [X11] Bugfix: The position of hidden windows was ignored by Metacity
|
- [X11] Bugfix: The position of hidden windows was ignored by Metacity
|
||||||
|
|
|
@ -251,9 +251,6 @@ static void pollJoystickEvents(void)
|
||||||
joystick->axes[i] = value;
|
joystick->axes[i] = value;
|
||||||
else
|
else
|
||||||
joystick->axes[i] = (2.f * (value - axis->minReport) / readScale) - 1.f;
|
joystick->axes[i] = (2.f * (value - axis->minReport) / readScale) - 1.f;
|
||||||
|
|
||||||
if (i & 1)
|
|
||||||
joystick->axes[i] = -joystick->axes[i];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < CFArrayGetCount(joystick->hatElements); i++)
|
for (i = 0; i < CFArrayGetCount(joystick->hatElements); i++)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user