This commit is contained in:
Dino 2026-01-14 13:39:42 -06:00 committed by GitHub
commit 3bb7226752
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1398,6 +1398,8 @@ GLFWAPI int glfwGetGamepadState(int jid, GLFWgamepadstate* state)
assert(state != NULL); assert(state != NULL);
memset(state, 0, sizeof(GLFWgamepadstate)); memset(state, 0, sizeof(GLFWgamepadstate));
state->axes[GLFW_GAMEPAD_AXIS_LEFT_TRIGGER] = -1.0f;
state->axes[GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER] = -1.0f;
_GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE);