Home
last modified time | relevance | path

Searched refs:naxes (Results 1 – 25 of 36) sorted by relevance

12

/AliOS-Things-master/components/SDL2/src/joystick/virtual/
A DSDL_virtualjoystick.c92 int naxes, in SDL_JoystickAttachVirtualInner() argument
105 hwdata->naxes = naxes; in SDL_JoystickAttachVirtualInner()
115 if (naxes > 0) { in SDL_JoystickAttachVirtualInner()
116 hwdata->axes = SDL_calloc(naxes, sizeof(Sint16)); in SDL_JoystickAttachVirtualInner()
327 joystick->naxes = hwdata->naxes; in VIRTUAL_JoystickOpen()
357 for (i = 0; i < hwdata->naxes; ++i) { in VIRTUAL_JoystickUpdate()
A DSDL_virtualjoystick_c.h39 int naxes; member
51 int naxes,
/AliOS-Things-master/components/SDL2/src/joystick/steam/
A DSDL_steamcontroller.c33 void SDL_GetSteamControllerInputs(int *nbuttons, int *naxes, int *nhats) in SDL_GetSteamControllerInputs() argument
36 *naxes = 0; in SDL_GetSteamControllerInputs()
A DSDL_steamcontroller.h32 void SDL_GetSteamControllerInputs(int *nbuttons, int *naxes, int *nhats);
/AliOS-Things-master/components/SDL2/src/joystick/android/
A DSDL_sysjoystick.c325 …endor_id, int product_id, SDL_bool is_accelerometer, int button_mask, int naxes, int nhats, int nb… in Android_AddJoystick() argument
336 if (naxes < 2 && nhats < 1) { in Android_AddJoystick()
353 … = 0x%.4x, product = 0x%.4x, %d axes, %d hats\n", name, desc, vendor_id, product_id, naxes, nhats); in Android_AddJoystick()
361 if (naxes >= 2) { in Android_AddJoystick()
364 if (naxes >= 4) { in Android_AddJoystick()
367 if (naxes >= 6) { in Android_AddJoystick()
428 item->naxes = naxes; in Android_AddJoystick()
625 joystick->naxes = item->naxes; in ANDROID_JoystickOpen()
A DSDL_sysjoystick_c.h35 …endor_id, int product_id, SDL_bool is_accelerometer, int button_mask, int naxes, int nhats, int nb…
47 int nbuttons, naxes, nhats, nballs; member
/AliOS-Things-master/components/SDL2/src/joystick/emscripten/
A DSDL_sysjoystick.c75 item->naxes = gamepadEvent->numAxes; in Emscripten_JoyStickConnected()
81 for( i = 0; i < item->naxes; i++) { in Emscripten_JoyStickConnected()
328 joystick->naxes = item->naxes; in EMSCRIPTEN_JoystickOpen()
362 for(i = 0; i < item->naxes; i++) { in EMSCRIPTEN_JoystickUpdate()
A DSDL_sysjoystick_c.h39 int naxes; member
/AliOS-Things-master/components/SDL2/src/joystick/windows/
A DSDL_windows_gaming_input.c50 int naxes; member
278 … __x_ABI_CWindows_CGaming_CInput_CIRawGameController_get_AxisCount(controller, &state->naxes); in IEventHandler_CRawGameControllerVtbl_InvokeAdded()
511 joystick->naxes = state->naxes; in WGI_JoystickOpen()
612 UINT32 naxes = joystick->naxes; in WGI_JoystickUpdate() local
613 DOUBLE *axes = SDL_stack_alloc(DOUBLE, naxes); in WGI_JoystickUpdate()
616 …ler_GetCurrentReading(hwdata->controller, nbuttons, buttons, nhats, hats, naxes, axes, &timestamp); in WGI_JoystickUpdate()
626 for (i = 0; i < naxes; ++i) { in WGI_JoystickUpdate()
A DSDL_mmjoystick.c273 joystick->naxes = SYS_Joystick[index].wNumAxes; in SDL_SYS_JoystickOpen()
343 for (i = 0; i < joystick->naxes; i++) { in SDL_SYS_JoystickUpdate()
A DSDL_xinputjoystick.c375 joystick->naxes = 6; in SDL_XINPUT_JoystickOpen()
378 joystick->naxes = 6; in SDL_XINPUT_JoystickOpen()
/AliOS-Things-master/components/SDL2/src/joystick/haiku/
A DSDL_haikujoystick.cc150 joystick->naxes = stick->CountAxes(); in HAIKU_JoystickOpen()
154 SDL_malloc(joystick->naxes * sizeof(int16)); in HAIKU_JoystickOpen()
203 for (i = 0; i < joystick->naxes; ++i) { in HAIKU_JoystickUpdate()
/AliOS-Things-master/components/SDL2/src/haptic/windows/
A DSDL_dinputhaptic.c225 haptic->hwdata->axes[haptic->naxes] = offset; in DI_DeviceObjectCallback()
226 haptic->naxes++; in DI_DeviceObjectCallback()
229 if (haptic->naxes >= 3) { in DI_DeviceObjectCallback()
553 if (naxes == 0) { in SDL_SYS_SetDirection()
560 rglDir = SDL_malloc(sizeof(LONG) * naxes); in SDL_SYS_SetDirection()
564 SDL_memset(rglDir, 0, sizeof(LONG) * naxes); in SDL_SYS_SetDirection()
575 if (naxes > 1) in SDL_SYS_SetDirection()
577 if (naxes > 2) in SDL_SYS_SetDirection()
583 if (naxes > 1) in SDL_SYS_SetDirection()
585 if (naxes > 2) in SDL_SYS_SetDirection()
[all …]
/AliOS-Things-master/components/SDL2/src/haptic/darwin/
A DSDL_syshaptic.c474 haptic->naxes = ((features.numFfAxes) > 3) ? 3 : features.numFfAxes; in GetSupportedFeatures()
477 haptic->naxes * sizeof(Uint8)); in GetSupportedFeatures()
732 SDL_SYS_SetDirection(FFEFFECT * effect, SDL_HapticDirection * dir, int naxes) in SDL_SYS_SetDirection() argument
737 if (naxes == 0) { in SDL_SYS_SetDirection()
744 rglDir = SDL_malloc(sizeof(LONG) * naxes); in SDL_SYS_SetDirection()
748 SDL_memset(rglDir, 0, sizeof(LONG) * naxes); in SDL_SYS_SetDirection()
759 if (naxes > 1) { in SDL_SYS_SetDirection()
762 if (naxes > 2) { in SDL_SYS_SetDirection()
769 if (naxes > 1) { in SDL_SYS_SetDirection()
772 if (naxes > 2) { in SDL_SYS_SetDirection()
[all …]
/AliOS-Things-master/components/SDL2/src/joystick/
A DSDL_joystick.c351 if (joystick->naxes == 2) { in SDL_JoystickAxesCenteredAtZero()
431 if (joystick->naxes > 0) { in SDL_JoystickOpen()
443 if (((joystick->naxes > 0) && !joystick->axes) in SDL_JoystickOpen()
457 for (i = 0; i < joystick->naxes; ++i) { in SDL_JoystickOpen()
481 int naxes, in SDL_JoystickAttachVirtual() argument
487 naxes, in SDL_JoystickAttachVirtual()
617 return joystick->naxes; in SDL_JoystickNumAxes()
667 if (axis < joystick->naxes) { in SDL_JoystickGetAxis()
685 if (axis >= joystick->naxes) { in SDL_JoystickGetAxisInitialState()
1110 for (i = 0; i < joystick->naxes; i++) { in SDL_PrivateJoystickForceRecentering()
[all …]
A DSDL_sysjoystick.h48 int naxes; /* Number of axis controls on the joystick */ member
A DSDL_gamecontroller.c731 if (gamecontroller->joystick->naxes) { in SDL_PrivateLoadButtonMapping()
732 …SDL_memset(gamecontroller->last_match_axis, 0, gamecontroller->joystick->naxes * sizeof(*gamecontr… in SDL_PrivateLoadButtonMapping()
744 if (binding->input.axis.axis < gamecontroller->joystick->naxes) { in SDL_PrivateLoadButtonMapping()
1791 if (gamecontroller->joystick->naxes) { in SDL_GameControllerOpen()
1792 …= (SDL_ExtendedGameControllerBind **)SDL_calloc(gamecontroller->joystick->naxes, sizeof(*gamecontr… in SDL_GameControllerOpen()
/AliOS-Things-master/components/SDL2/src/joystick/iphoneos/
A DSDL_sysjoystick_c.h46 int naxes; member
A DSDL_sysjoystick.m189 device->naxes = 6; /* 2 thumbsticks and 2 triggers */ method in is_ps4
210 device->naxes = 0; /* no traditional analog inputs */ field
229 device->naxes = 2; /* treat the touch surface as two axes */ field
296 device->naxes = 3; /* Device acceleration in the x, y, and z axes. */ field
520 joystick->naxes = device->naxes; method in SDL_Joystick
/AliOS-Things-master/components/SDL2/src/haptic/
A DSDL_syshaptic.h47 int naxes; /* Number of axes on the device. */ member
/AliOS-Things-master/components/SDL2/src/joystick/bsd/
A DSDL_sysjoystick.c374 joy->naxes = 2;
451 joy->naxes = 0;
508 hw->axis_map[i] = joy->naxes++;
510 if (joy->naxes == 0 && joy->nbuttons == 0 && joy->nhats == 0 && joy->nballs == 0) {
/AliOS-Things-master/components/SDL2/src/joystick/psp/
A DSDL_sysjoystick.c174 joystick->naxes = 2; in SDL_SYS_JoystickOpen()
/AliOS-Things-master/components/SDL2/include/
A DSDL_joystick.h208 int naxes,
/AliOS-Things-master/components/SDL2/src/joystick/hidapi/
A DSDL_hidapi_xbox360w.c140 joystick->naxes = SDL_CONTROLLER_AXIS_MAX; in HIDAPI_DriverXbox360W_OpenJoystick()
/AliOS-Things-master/components/SDL2/src/joystick/linux/
A DSDL_sysjoystick.c719 joystick->hwdata->abs_map[i] = joystick->naxes; in ConfigJoystick()
737 ++joystick->naxes; in ConfigJoystick()
815 &joystick->naxes, in LINUX_JoystickOpen()

Completed in 60 milliseconds

12