Home
last modified time | relevance | path

Searched refs:nbuttons (Results 1 – 24 of 24) sorted by relevance

/third_party/flutter/skia/third_party/externals/sdl/src/joystick/android/
DSDL_sysjoystick.c247 Android_AddJoystick(int device_id, const char *name, SDL_bool is_accelerometer, int nbuttons, int n… in Android_AddJoystick() argument
275 if (nbuttons > -1) { in Android_AddJoystick()
276 item->nbuttons = nbuttons; in Android_AddJoystick()
279 item->nbuttons = ANDROID_MAX_NBUTTONS; in Android_AddJoystick()
463 joystick->nbuttons = item->nbuttons; in SDL_SYS_JoystickOpen()
DSDL_sysjoystick_c.h31 …oystick(int device_id, const char *name, SDL_bool is_accelerometer, int nbuttons, int naxes, int n…
43 int nbuttons, naxes, nhats, nballs; member
/third_party/libinput/test/
Dtest-pad.c160 unsigned int nbuttons = 0; in START_TEST() local
169 nbuttons++; in START_TEST()
173 nbuttons); in START_TEST()
784 int ngroups, nbuttons, nrings, nstrips; in START_TEST() local
790 nbuttons = libinput_device_tablet_pad_get_num_buttons(device); in START_TEST()
794 for (b = 0; b < nbuttons; b++) { in START_TEST()
843 int ngroups, nbuttons, nrings, nstrips; in START_TEST() local
850 nbuttons = libinput_device_tablet_pad_get_num_buttons(device); in START_TEST()
857 nbuttons); in START_TEST()
860 nbuttons + 1); in START_TEST()
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/
DSDL_joystick.c156 if (joystick->nbuttons > 0) { in SDL_JoystickOpen()
158 (joystick->nbuttons * sizeof(Uint8)); in SDL_JoystickOpen()
163 || ((joystick->nbuttons > 0) && !joystick->buttons)) { in SDL_JoystickOpen()
180 SDL_memset(joystick->buttons, 0, joystick->nbuttons * sizeof(Uint8)); in SDL_JoystickOpen()
259 return (joystick->nbuttons); in SDL_JoystickNumButtons()
341 if (button < joystick->nbuttons) { in SDL_JoystickGetButton()
344 SDL_SetError("Joystick only has %d buttons", joystick->nbuttons); in SDL_JoystickGetButton()
704 if (button >= joystick->nbuttons) { in SDL_PrivateJoystickButton()
760 for (i = 0; i < joystick->nbuttons; i++) { in SDL_JoystickUpdate()
DSDL_sysjoystick.h50 int nbuttons; /* Number of buttons on the joystick */ member
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/emscripten/
DSDL_sysjoystick.c78 item->nbuttons = gamepadEvent->numButtons; in Emscripten_JoyStickConnected()
87 for( i = 0; i < item->nbuttons; i++) { in Emscripten_JoyStickConnected()
291 joystick->nbuttons = item->nbuttons; in SDL_SYS_JoystickOpen()
319 for(i = 0; i < item->nbuttons; i++) { in SDL_SYS_JoystickUpdate()
DSDL_sysjoystick_c.h38 int nbuttons; member
/third_party/libinput/tools/
Dlibinput-list-devices.c248 int nbuttons, nrings, nstrips, ngroups, nmodes; in print_pad_info() local
251 nbuttons = libinput_device_tablet_pad_get_num_buttons(device); in print_pad_info()
262 printf(" Buttons: %d\n", nbuttons); in print_pad_info()
Dlibinput-debug-events.c231 int nbuttons, nstrips, nrings, ngroups; in print_device_options() local
233 nbuttons = libinput_device_tablet_pad_get_num_buttons(dev); in print_device_options()
239 nbuttons, in print_device_options()
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/iphoneos/
DSDL_sysjoystick.m122 device->nbuttons = 7; /* ABXY, shoulder buttons, pause button */
126 device->nbuttons = 7; /* ABXY, shoulder buttons, pause button */
132 device->nbuttons = 3; /* AX, pause button */
175 device->nbuttons = 0;
355 This should fill the nbuttons and naxes fields of the joystick structure.
371 joystick->nbuttons = device->nbuttons;
582 Uint8 pausebutton = joystick->nbuttons - 1;
DSDL_sysjoystick_c.h44 int nbuttons; member
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/haiku/
DSDL_haikujoystick.cc138 joystick->nbuttons = stick->CountButtons(); in SDL_SYS_JoystickOpen()
214 for (i = 0; i < joystick->nbuttons; ++i) { in SDL_SYS_JoystickUpdate()
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/bsd/
DSDL_sysjoystick.c311 joy->nbuttons = 2;
390 joy->nbuttons = 0;
429 joy->nbuttons++;
444 if (joy->naxes == 0 && joy->nbuttons == 0 && joy->nhats == 0 && joy->nballs == 0) {
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/linux/
DSDL_sysjoystick.c449 joystick->hwdata->key_map[i - BTN_MISC] = joystick->nbuttons; in ConfigJoystick()
450 ++joystick->nbuttons; in ConfigJoystick()
458 joystick->hwdata->key_map[i - BTN_MISC] = joystick->nbuttons; in ConfigJoystick()
459 ++joystick->nbuttons; in ConfigJoystick()
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/windows/
DSDL_xinputjoystick.c211 joystick->nbuttons = 15; in SDL_XINPUT_JoystickOpen()
214 joystick->nbuttons = 11; in SDL_XINPUT_JoystickOpen()
DSDL_mmjoystick.c264 joystick->nbuttons = SYS_Joystick[index].wNumButtons; in SDL_SYS_JoystickOpen()
356 for (i = 0; i < joystick->nbuttons; ++i) { in SDL_SYS_JoystickUpdate()
DSDL_dinputjoystick.c427 in->num = joystick->nbuttons; in EnumDevObjectsCallback()
429 joystick->nbuttons++; in EnumDevObjectsCallback()
/third_party/libinput/src/
Devdev-tablet-pad.h72 unsigned int nbuttons; member
Devdev-tablet-pad.c582 pad->nbuttons = map; in pad_init_buttons_from_libwacom()
622 pad->nbuttons = map; in pad_init_buttons_from_kernel()
770 return pad->nbuttons; in evdev_device_tablet_pad_get_num_buttons()
Devdev-tablet-pad-leds.c560 if (pad->nbuttons > 32) { in pad_init_leds()
563 pad->nbuttons); in pad_init_leds()
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/psp/
DSDL_sysjoystick.c173 joystick->nbuttons = 14; in SDL_SYS_JoystickOpen()
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/darwin/
DSDL_sysjoystick.c638 joystick->nbuttons = device->buttons; 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 …retval = Android_AddJoystick(device_id, name, (SDL_bool) is_accelerometer, nbuttons, naxes, nhats,… in Java_org_libsdl_app_SDLActivity_nativeAddJoystick()
/third_party/flutter/skia/third_party/externals/sdl/android-project/src/org/libsdl/app/
DSDLActivity.java437 int is_accelerometer, int nbuttons, in nativeAddJoystick() argument