Home
last modified time | relevance | path

Searched refs:has_hat (Results 1 – 2 of 2) sorted by relevance

/AliOS-Things-master/components/SDL2/src/joystick/linux/
A DSDL_sysjoystick_c.h72 SDL_bool has_hat[4]; member
A DSDL_sysjoystick.c755 joystick->hwdata->has_hat[hat_index] = SDL_TRUE; in ConfigJoystick()
985 SDL_assert(hatidx < SDL_arraysize(joystick->hwdata->has_hat)); in PollAllValues()
986 if (joystick->hwdata->has_hat[hatidx]) { in PollAllValues()
1272 if (joystick->hwdata->has_hat[1] && /* Check if ABS_HAT1{X, Y} is available. */ in LINUX_JoystickGetGamepadMapping()
1282 if (joystick->hwdata->has_hat[2]) { /* Check if ABS_HAT2{X,Y} is available. */ in LINUX_JoystickGetGamepadMapping()
1321 if (joystick->hwdata->has_hat[0] && /* Check if ABS_HAT0{X,Y} is available. */ in LINUX_JoystickGetGamepadMapping()

Completed in 4 milliseconds