Fixed Hats

This commit is contained in:
Snowiiii 2021-12-29 23:16:12 +01:00 committed by GitHub
parent 6bcf518685
commit 9fd9068969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1074,7 +1074,8 @@ GLFWAPI const unsigned char* glfwGetJoystickHats(int jid, int* count)
if (!_glfw.platform.pollJoystick(js, _GLFW_POLL_BUTTONS))
return NULL;
return *count = js->hats;
*count = js->hatCount;
return js->hats;
}
GLFWAPI const char* glfwGetJoystickName(int jid)