Searched refs:axes (Results 1 – 13 of 13) sorted by relevance
/AliOS-Things-master/components/SDL2/src/joystick/virtual/ |
A D | SDL_virtualjoystick.c | 59 if (hwdata->axes) { in VIRTUAL_FreeHWData() 60 SDL_free((void *)hwdata->axes); in VIRTUAL_FreeHWData() 61 hwdata->axes = NULL; in VIRTUAL_FreeHWData() 116 hwdata->axes = SDL_calloc(naxes, sizeof(Sint16)); in SDL_JoystickAttachVirtualInner() 117 if (!hwdata->axes) { in SDL_JoystickAttachVirtualInner() 184 hwdata->axes[axis] = value; in SDL_JoystickSetVirtualAxisInner() 358 SDL_PrivateJoystickAxis(joystick, i, hwdata->axes[i]); in VIRTUAL_JoystickUpdate()
|
A D | SDL_virtualjoystick_c.h | 40 Sint16 *axes; member
|
/AliOS-Things-master/components/SDL2/src/joystick/haiku/ |
A D | SDL_haikujoystick.cc | 187 int16 *axes; in HAIKU_JoystickUpdate() local 193 axes = joystick->hwdata->new_axes; in HAIKU_JoystickUpdate() 198 stick->GetAxisValues(axes); in HAIKU_JoystickUpdate() 204 SDL_PrivateJoystickAxis(joystick, i, axes[i]); in HAIKU_JoystickUpdate()
|
/AliOS-Things-master/components/SDL2/src/haptic/darwin/ |
A D | SDL_syshaptic.c | 68 UInt8 axes[3]; member 476 SDL_memcpy(haptic->hwdata->axes, features.ffAxes, in GetSupportedFeatures() 809 DWORD *axes = NULL; in SDL_SYS_ToFFEFFECT() local 834 axes = SDL_malloc(sizeof(DWORD) * dest->cAxes); in SDL_SYS_ToFFEFFECT() 835 if (axes == NULL) { in SDL_SYS_ToFFEFFECT() 838 axes[0] = haptic->hwdata->axes[0]; /* Always at least one axis. */ in SDL_SYS_ToFFEFFECT() 840 axes[1] = haptic->hwdata->axes[1]; in SDL_SYS_ToFFEFFECT() 843 axes[2] = haptic->hwdata->axes[2]; in SDL_SYS_ToFFEFFECT() 845 dest->rgdwAxes = axes; in SDL_SYS_ToFFEFFECT()
|
/AliOS-Things-master/components/SDL2/src/haptic/windows/ |
A D | SDL_dinputhaptic.c | 225 haptic->hwdata->axes[haptic->naxes] = offset; in DI_DeviceObjectCallback() 621 DWORD *axes; in SDL_SYS_ToDIEFFECT() local 646 axes = SDL_malloc(sizeof(DWORD) * dest->cAxes); in SDL_SYS_ToDIEFFECT() 647 if (axes == NULL) { in SDL_SYS_ToDIEFFECT() 650 axes[0] = haptic->hwdata->axes[0]; /* Always at least one axis. */ in SDL_SYS_ToDIEFFECT() 652 axes[1] = haptic->hwdata->axes[1]; in SDL_SYS_ToDIEFFECT() 655 axes[2] = haptic->hwdata->axes[2]; in SDL_SYS_ToDIEFFECT() 657 dest->rgdwAxes = axes; in SDL_SYS_ToDIEFFECT()
|
A D | SDL_windowshaptic_c.h | 39 DWORD axes[3]; /* Axes to use. */ member
|
/AliOS-Things-master/components/SDL2/src/joystick/darwin/ |
A D | SDL_sysjoystick_c.h | 59 int axes; /* number of axis (calculated, not reported by device) */ member
|
A D | SDL_sysjoystick.c | 309 pDevice->axes++; in AddHIDElement() 351 pDevice->axes++; in AddHIDElement() 785 joystick->naxes = device->axes; in DARWIN_JoystickOpen()
|
/AliOS-Things-master/components/SDL2/src/joystick/ |
A D | SDL_joystick.c | 432 …joystick->axes = (SDL_JoystickAxisInfo *) SDL_calloc(joystick->naxes, sizeof(SDL_JoystickAxisInfo)… in SDL_JoystickOpen() 443 if (((joystick->naxes > 0) && !joystick->axes) in SDL_JoystickOpen() 458 joystick->axes[i].has_initial_value = SDL_TRUE; in SDL_JoystickOpen() 668 state = joystick->axes[axis].value; in SDL_JoystickGetAxis() 690 *state = joystick->axes[axis].initial_value; in SDL_JoystickGetAxisInitialState() 692 return joystick->axes[axis].has_initial_value; in SDL_JoystickGetAxisInitialState() 962 SDL_free(joystick->axes); in SDL_JoystickClose() 1111 if (joystick->axes[i].has_initial_value) { in SDL_PrivateJoystickForceRecentering() 1112 SDL_PrivateJoystickAxis(joystick, i, joystick->axes[i].zero); in SDL_PrivateJoystickForceRecentering() 1173 info = &joystick->axes[axis]; in SDL_PrivateJoystickAxis()
|
A D | SDL_sysjoystick.h | 49 SDL_JoystickAxisInfo *axes; member
|
A D | SDL_gamecontroller.c | 745 gamecontroller->joystick->axes[binding->input.axis.axis].value = in SDL_PrivateLoadButtonMapping() 746 …gamecontroller->joystick->axes[binding->input.axis.axis].zero = (Sint16)binding->input.axis.axis_m… in SDL_PrivateLoadButtonMapping()
|
/AliOS-Things-master/components/SDL2/src/joystick/iphoneos/ |
A D | SDL_sysjoystick.m | 229 device->naxes = 2; /* treat the touch surface as two axes */ 296 device->naxes = 3; /* Device acceleration in the x, y, and z axes. */ 642 Sint16 axes[] = { 688 for (i = 0; i < SDL_arraysize(axes); i++) { 689 SDL_PrivateJoystickAxis(joystick, i, axes[i]); 720 Sint16 axes[] = { 725 for (i = 0; i < SDL_arraysize(axes); i++) { 726 SDL_PrivateJoystickAxis(joystick, i, axes[i]);
|
/AliOS-Things-master/components/SDL2/src/joystick/windows/ |
A D | SDL_windows_gaming_input.c | 613 DOUBLE *axes = SDL_stack_alloc(DOUBLE, naxes); in WGI_JoystickUpdate() local 616 …ler_GetCurrentReading(hwdata->controller, nbuttons, buttons, nhats, hats, naxes, axes, ×tamp); in WGI_JoystickUpdate() 627 SDL_PrivateJoystickAxis(joystick, i, (int)(axes[i] * 65535) - 32768); in WGI_JoystickUpdate() 634 SDL_stack_free(axes); in WGI_JoystickUpdate()
|
Completed in 27 milliseconds