Lines Matching defs:state
37 // Internal key state used for sticky keys
1391 GLFWAPI int glfwGetGamepadState(int jid, GLFWgamepadstate* state)
1398 assert(state != NULL);
1400 memset(state, 0, sizeof(GLFWgamepadstate));
1434 state->buttons[i] = GLFW_PRESS;
1439 state->buttons[i] = GLFW_PRESS;
1447 state->buttons[i] = GLFW_PRESS;
1450 state->buttons[i] = js->buttons[e->index];
1459 state->axes[i] = fminf(fmaxf(value, -1.f), 1.f);
1466 state->axes[i] = 1.f;
1468 state->axes[i] = -1.f;
1471 state->axes[i] = js->buttons[e->index] * 2.f - 1.f;