Lines Matching refs:index
88 if (e->type == _GLFW_JOYSTICK_HATBIT && (e->index >> 4) >= js->hatCount)
90 else if (e->type == _GLFW_JOYSTICK_BUTTON && e->index >= js->buttonCount)
92 else if (e->type == _GLFW_JOYSTICK_AXIS && e->index >= js->axisCount)
223 e->index = (uint8_t) ((hat << 4) | bit);
226 e->index = (uint8_t) strtoul(c + 1, (char**) &c, 10);
1428 const float value = js->axes[e->index] * e->axisScale + e->axisOffset;
1444 const unsigned int hat = e->index >> 4;
1445 const unsigned int bit = e->index & 0xf;
1450 state->buttons[i] = js->buttons[e->index];
1458 const float value = js->axes[e->index] * e->axisScale + e->axisOffset;
1463 const unsigned int hat = e->index >> 4;
1464 const unsigned int bit = e->index & 0xf;
1471 state->axes[i] = js->buttons[e->index] * 2.f - 1.f;