Home
last modified time | relevance | path

Searched refs:axes (Results 1 – 13 of 13) sorted by relevance

/AliOS-Things-master/components/SDL2/src/joystick/virtual/
A DSDL_virtualjoystick.c59 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 DSDL_virtualjoystick_c.h40 Sint16 *axes; member
/AliOS-Things-master/components/SDL2/src/joystick/haiku/
A DSDL_haikujoystick.cc187 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 DSDL_syshaptic.c68 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 DSDL_dinputhaptic.c225 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 DSDL_windowshaptic_c.h39 DWORD axes[3]; /* Axes to use. */ member
/AliOS-Things-master/components/SDL2/src/joystick/darwin/
A DSDL_sysjoystick_c.h59 int axes; /* number of axis (calculated, not reported by device) */ member
A DSDL_sysjoystick.c309 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 DSDL_joystick.c432 …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 DSDL_sysjoystick.h49 SDL_JoystickAxisInfo *axes; member
A DSDL_gamecontroller.c745 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 DSDL_sysjoystick.m229 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 DSDL_windows_gaming_input.c613 DOUBLE *axes = SDL_stack_alloc(DOUBLE, naxes); in WGI_JoystickUpdate() local
616 …ler_GetCurrentReading(hwdata->controller, nbuttons, buttons, nhats, hats, naxes, axes, &timestamp); 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