From 9fd90689697cd74e38ba48df2a20982cef8a7204 Mon Sep 17 00:00:00 2001 From: Snowiiii <71594357+Snowiiii@users.noreply.github.com> Date: Wed, 29 Dec 2021 23:16:12 +0100 Subject: [PATCH] Fixed Hats --- src/input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/input.c b/src/input.c index 25fd71c5..f82e4bb1 100644 --- a/src/input.c +++ b/src/input.c @@ -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)