Lines Matching defs:hat
221 const unsigned long hat = strtoul(c + 1, (char**) &c, 10);
223 e->index = (uint8_t) ((hat << 4) | bit);
455 // Notifies shared code of the new value of a joystick hat
457 void _glfwInputJoystickHat(_GLFWjoystick* js, int hat, char value)
462 assert(hat >= 0);
463 assert(hat < js->hatCount);
465 // Valid hat values only use the least significant nibble
467 // Valid hat values do not have both bits of an axis set
471 base = js->buttonCount + hat * 4;
478 js->hats[hat] = value;
1444 const unsigned int hat = e->index >> 4;
1446 if (js->hats[hat] & bit)
1463 const unsigned int hat = e->index >> 4;
1465 if (js->hats[hat] & bit)