/AliOS-Things-master/components/SDL2/src/joystick/virtual/ |
A D | SDL_virtualjoystick.c | 92 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 D | SDL_virtualjoystick_c.h | 39 int naxes; member 51 int naxes,
|
/AliOS-Things-master/components/SDL2/src/joystick/steam/ |
A D | SDL_steamcontroller.c | 33 void SDL_GetSteamControllerInputs(int *nbuttons, int *naxes, int *nhats) in SDL_GetSteamControllerInputs() argument 36 *naxes = 0; in SDL_GetSteamControllerInputs()
|
A D | SDL_steamcontroller.h | 32 void SDL_GetSteamControllerInputs(int *nbuttons, int *naxes, int *nhats);
|
/AliOS-Things-master/components/SDL2/src/joystick/android/ |
A D | SDL_sysjoystick.c | 325 …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 D | SDL_sysjoystick_c.h | 35 …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 D | SDL_sysjoystick.c | 75 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 D | SDL_sysjoystick_c.h | 39 int naxes; member
|
/AliOS-Things-master/components/SDL2/src/joystick/windows/ |
A D | SDL_windows_gaming_input.c | 50 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, ×tamp); in WGI_JoystickUpdate() 626 for (i = 0; i < naxes; ++i) { in WGI_JoystickUpdate()
|
A D | SDL_mmjoystick.c | 273 joystick->naxes = SYS_Joystick[index].wNumAxes; in SDL_SYS_JoystickOpen() 343 for (i = 0; i < joystick->naxes; i++) { in SDL_SYS_JoystickUpdate()
|
A D | SDL_xinputjoystick.c | 375 joystick->naxes = 6; in SDL_XINPUT_JoystickOpen() 378 joystick->naxes = 6; in SDL_XINPUT_JoystickOpen()
|
/AliOS-Things-master/components/SDL2/src/joystick/haiku/ |
A D | SDL_haikujoystick.cc | 150 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 D | SDL_dinputhaptic.c | 225 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 D | SDL_syshaptic.c | 474 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 D | SDL_joystick.c | 351 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 D | SDL_sysjoystick.h | 48 int naxes; /* Number of axis controls on the joystick */ member
|
A D | SDL_gamecontroller.c | 731 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 D | SDL_sysjoystick_c.h | 46 int naxes; member
|
A D | SDL_sysjoystick.m | 189 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 D | SDL_syshaptic.h | 47 int naxes; /* Number of axes on the device. */ member
|
/AliOS-Things-master/components/SDL2/src/joystick/bsd/ |
A D | SDL_sysjoystick.c | 374 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 D | SDL_sysjoystick.c | 174 joystick->naxes = 2; in SDL_SYS_JoystickOpen()
|
/AliOS-Things-master/components/SDL2/include/ |
A D | SDL_joystick.h | 208 int naxes,
|
/AliOS-Things-master/components/SDL2/src/joystick/hidapi/ |
A D | SDL_hidapi_xbox360w.c | 140 joystick->naxes = SDL_CONTROLLER_AXIS_MAX; in HIDAPI_DriverXbox360W_OpenJoystick()
|
/AliOS-Things-master/components/SDL2/src/joystick/linux/ |
A D | SDL_sysjoystick.c | 719 joystick->hwdata->abs_map[i] = joystick->naxes; in ConfigJoystick() 737 ++joystick->naxes; in ConfigJoystick() 815 &joystick->naxes, in LINUX_JoystickOpen()
|