Searched refs:jhat (Results 1 – 6 of 6) sorted by relevance
72 event.jhat.which, event.jhat.hat); in loop()73 if (event.jhat.value == SDL_HAT_CENTERED) in loop()75 if (event.jhat.value & SDL_HAT_UP) in loop()77 if (event.jhat.value & SDL_HAT_RIGHT) in loop()79 if (event.jhat.value & SDL_HAT_DOWN) in loop()81 if (event.jhat.value & SDL_HAT_LEFT) in loop()
250 if (event.jhat.value == SDL_HAT_CENTERED) { in WatchJoystick()254 … if (steps[_s].hat == event.jhat.hat && steps[_s].hat_value == event.jhat.value) { in WatchJoystick()259 step->hat = event.jhat.hat; in WatchJoystick()260 step->hat_value = event.jhat.value; in WatchJoystick()262 … SDL_snprintf(temp, SDL_arraysize(temp), ":h%u.%u,", event.jhat.hat, event.jhat.value ); in WatchJoystick()
207 if (event->jhat.hat >= 4) break; in SDL_GameControllerEventWatcher()211 if (controllerlist->joystick->instance_id == event->jhat.which) { in SDL_GameControllerEventWatcher()212 Uint8 bSame = controllerlist->hatState[event->jhat.hat] & event->jhat.value; in SDL_GameControllerEventWatcher()214 Uint8 bChanged = controllerlist->hatState[event->jhat.hat] ^ bSame; in SDL_GameControllerEventWatcher()216 int bHighHat = event->jhat.hat << 4; in SDL_GameControllerEventWatcher()228 bChanged = event->jhat.value ^ bSame; in SDL_GameControllerEventWatcher()240 controllerlist->hatState[event->jhat.hat] = event->jhat.value; in SDL_GameControllerEventWatcher()
637 event.jhat.type = SDL_JOYHATMOTION; in SDL_PrivateJoystickHat()638 event.jhat.which = joystick->instance_id; in SDL_PrivateJoystickHat()639 event.jhat.hat = hat; in SDL_PrivateJoystickHat()640 event.jhat.value = value; in SDL_PrivateJoystickHat()
538 SDL_JoyHatEvent jhat; /**< Joystick hat event data */ member
1133 switch (event->jhat.value) { in SDLTest_PrintEvent()1162 SDL_Log("SDL EVENT: Joystick %d: hat %d moved to %s", event->jhat.which, in SDLTest_PrintEvent()1163 event->jhat.hat, position); in SDLTest_PrintEvent()