Searched refs:hats (Results 1 – 11 of 11) sorted by relevance
/AliOS-Things-master/components/SDL2/src/joystick/virtual/ |
A D | SDL_virtualjoystick.c | 67 if (hwdata->hats) { in VIRTUAL_FreeHWData() 68 SDL_free(hwdata->hats); in VIRTUAL_FreeHWData() 69 hwdata->hats = NULL; in VIRTUAL_FreeHWData() 130 hwdata->hats = SDL_calloc(nhats, sizeof(Uint8)); in SDL_JoystickAttachVirtualInner() 131 if (!hwdata->hats) { in SDL_JoystickAttachVirtualInner() 234 hwdata->hats[hat] = value; in SDL_JoystickSetVirtualHatInner() 364 SDL_PrivateJoystickHat(joystick, i, hwdata->hats[i]); in VIRTUAL_JoystickUpdate()
|
A D | SDL_virtualjoystick_c.h | 44 Uint8 *hats; member
|
/AliOS-Things-master/components/SDL2/src/joystick/haiku/ |
A D | SDL_haikujoystick.cc | 188 uint8 *hats; in HAIKU_JoystickUpdate() local 194 hats = joystick->hwdata->new_hats; in HAIKU_JoystickUpdate() 199 stick->GetHatValues(hats); in HAIKU_JoystickUpdate() 209 SDL_PrivateJoystickHat(joystick, i, hat_map[hats[i]]); in HAIKU_JoystickUpdate()
|
/AliOS-Things-master/components/SDL2/src/joystick/linux/ |
A D | SDL_sysjoystick_c.h | 46 } *hats; member
|
A D | SDL_sysjoystick.c | 635 joystick->hwdata->hats = in allocate_hatdata() 638 if (joystick->hwdata->hats == NULL) { in allocate_hatdata() 642 joystick->hwdata->hats[i].axis[0] = 1; in allocate_hatdata() 643 joystick->hwdata->hats[i].axis[1] = 1; in allocate_hatdata() 902 the_hat = &stick->hwdata->hats[hat]; in HandleHat() 1148 SDL_free(joystick->hwdata->hats); in LINUX_JoystickClose()
|
/AliOS-Things-master/components/SDL2/src/joystick/darwin/ |
A D | SDL_sysjoystick_c.h | 61 int hats; /* number of hat switches (calculated, not reported by device) */ member
|
A D | SDL_sysjoystick.c | 319 pDevice->hats++; in AddHIDElement() 786 joystick->nhats = device->hats; in DARWIN_JoystickOpen()
|
/AliOS-Things-master/components/SDL2/src/joystick/ |
A D | SDL_sysjoystick.h | 52 Uint8 *hats; /* Current hat states */ member
|
A D | SDL_joystick.c | 435 joystick->hats = (Uint8 *) SDL_calloc(joystick->nhats, sizeof(Uint8)); in SDL_JoystickOpen() 444 || ((joystick->nhats > 0) && !joystick->hats) in SDL_JoystickOpen() 707 state = joystick->hats[hat]; in SDL_JoystickGetHat() 963 SDL_free(joystick->hats); in SDL_JoystickClose() 1233 if (value == joystick->hats[hat]) { in SDL_PrivateJoystickHat() 1247 joystick->hats[hat] = value; in SDL_PrivateJoystickHat()
|
/AliOS-Things-master/components/SDL2/src/joystick/windows/ |
A D | SDL_windows_gaming_input.c | 611 …__x_ABI_CWindows_CGaming_CInput_CGameControllerSwitchPosition *hats = SDL_stack_alloc(__x_ABI_CWin… in WGI_JoystickUpdate() local 616 …ontroller_GetCurrentReading(hwdata->controller, nbuttons, buttons, nhats, hats, naxes, axes, &time… in WGI_JoystickUpdate() 624 SDL_PrivateJoystickHat(joystick, i, ConvertHatValue(hats[i])); in WGI_JoystickUpdate() 633 SDL_stack_free(hats); in WGI_JoystickUpdate()
|
A D | SDL_mmjoystick.c | 325 if (!joystick->hats) { in SDL_SYS_JoystickUpdate()
|
Completed in 17 milliseconds