mirror of
https://github.com/glfw/glfw.git
synced 2025-10-05 06:06:36 +00:00
Merge 8cbfc32350
into 43c1910453
This commit is contained in:
commit
ad914d5382
@ -246,7 +246,7 @@ static GLFWbool pollJoystickButtonEvents(_GLFWjoystickNS* js)
|
|||||||
CFArrayGetValueAtIndex(js->hatElements, i);
|
CFArrayGetValueAtIndex(js->hatElements, i);
|
||||||
|
|
||||||
// Bit fields of button presses for each direction, including nil
|
// Bit fields of button presses for each direction, including nil
|
||||||
const int directions[9] = { 1, 3, 2, 6, 4, 12, 8, 9, 0 };
|
const int directions[9] = { 0, 1, 3, 2, 6, 4, 12, 8, 9 };
|
||||||
|
|
||||||
long j, value = getElementValue(js, hat);
|
long j, value = getElementValue(js, hat);
|
||||||
if (value < 0 || value > 8)
|
if (value < 0 || value > 8)
|
||||||
|
Loading…
Reference in New Issue
Block a user