mirror of
https://github.com/glfw/glfw.git
synced 2026-01-15 02:25:31 +00:00
Setting default gamepad axes to their usual resting state
This commit is contained in:
parent
dbadda2683
commit
a6095def05
@ -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);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user