Home
last modified time | relevance | path

Searched refs:nhats (Results 1 – 17 of 17) sorted by relevance

/third_party/flutter/skia/third_party/externals/sdl/src/joystick/
DSDL_joystick.c148 if (joystick->nhats > 0) { in SDL_JoystickOpen()
150 (joystick->nhats * sizeof(Uint8)); in SDL_JoystickOpen()
161 || ((joystick->nhats > 0) && !joystick->hats) in SDL_JoystickOpen()
173 SDL_memset(joystick->hats, 0, joystick->nhats * sizeof(Uint8)); in SDL_JoystickOpen()
235 return (joystick->nhats); in SDL_JoystickNumHats()
293 if (hat < joystick->nhats) { in SDL_JoystickGetHat()
296 SDL_SetError("Joystick only has %d hats", joystick->nhats); in SDL_JoystickGetHat()
613 if (hat >= joystick->nhats) { in SDL_PrivateJoystickHat()
764 for (i = 0; i < joystick->nhats; i++) { in SDL_JoystickUpdate()
DSDL_sysjoystick.h41 int nhats; /* Number of hats on the joystick */ member
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/android/
DSDL_sysjoystick_c.h31 …e_id, const char *name, SDL_bool is_accelerometer, int nbuttons, int naxes, int nhats, int nballs);
43 int nbuttons, naxes, nhats, nballs; member
DSDL_sysjoystick.c247 …ce_id, const char *name, SDL_bool is_accelerometer, int nbuttons, int naxes, int nhats, int nballs) in Android_AddJoystick() argument
282 item->nhats = nhats; in Android_AddJoystick()
461 joystick->nhats = item->nhats; in SDL_SYS_JoystickOpen()
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/haiku/
DSDL_haikujoystick.cc140 joystick->nhats = stick->CountHats(); in SDL_SYS_JoystickOpen()
145 SDL_malloc(joystick->nhats * sizeof(uint8)); in SDL_SYS_JoystickOpen()
207 for (i = 0; i < joystick->nhats; ++i) { in SDL_SYS_JoystickUpdate()
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/iphoneos/
DSDL_sysjoystick_c.h45 int nhats; member
DSDL_sysjoystick.m121 device->nhats = 1; /* d-pad */
125 device->nhats = 1; /* d-pad */
131 device->nhats = 0; /* apparently the touch surface-as-dpad is buggy */
174 device->nhats = 0;
370 joystick->nhats = device->nhats;
575 if (joystick->nhats > 0) {
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/linux/
DSDL_sysjoystick.c400 (struct hwdata_hat *) SDL_malloc(joystick->nhats * in allocate_hatdata()
405 for (i = 0; i < joystick->nhats; ++i) { in allocate_hatdata()
513 ++joystick->nhats; in ConfigJoystick()
521 if (joystick->nhats > 0) { in ConfigJoystick()
523 joystick->nhats = 0; in ConfigJoystick()
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/bsd/
DSDL_sysjoystick.c312 joy->nhats = 0;
391 joy->nhats = 0;
424 joy->nhats++;
444 if (joy->naxes == 0 && joy->nbuttons == 0 && joy->nhats == 0 && joy->nballs == 0) {
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/windows/
DSDL_mmjoystick.c267 joystick->nhats = 1; in SDL_SYS_JoystickOpen()
269 joystick->nhats = 0; in SDL_SYS_JoystickOpen()
DSDL_xinputjoystick.c215 joystick->nhats = 1; in SDL_XINPUT_JoystickOpen()
DSDL_dinputjoystick.c432 in->num = joystick->nhats; in EnumDevObjectsCallback()
434 joystick->nhats++; in EnumDevObjectsCallback()
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/psp/
DSDL_sysjoystick.c175 joystick->nhats = 0; in SDL_SYS_JoystickOpen()
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/emscripten/
DSDL_sysjoystick.c288 joystick->nhats = 0; in SDL_SYS_JoystickOpen()
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/darwin/
DSDL_sysjoystick.c636 joystick->nhats = device->hats; in SDL_SYS_JoystickOpen()
/third_party/flutter/skia/third_party/externals/sdl/src/core/android/
DSDL_android.c210 jint nbuttons, jint naxes, jint nhats, jint nballs) in Java_org_libsdl_app_SDLActivity_nativeAddJoystick() argument
215 … Android_AddJoystick(device_id, name, (SDL_bool) is_accelerometer, nbuttons, naxes, nhats, nballs); in Java_org_libsdl_app_SDLActivity_nativeAddJoystick()
/third_party/flutter/skia/third_party/externals/sdl/android-project/src/org/libsdl/app/
DSDLActivity.java438 int naxes, int nhats, int nballs); in nativeAddJoystick() argument