Home
last modified time | relevance | path

Searched refs:axes_zero (Results 1 – 3 of 3) sorted by relevance

/third_party/flutter/skia/third_party/externals/sdl/src/joystick/
DSDL_joystick.c146 joystick->axes_zero = (Sint16 *) SDL_malloc(joystick->naxes * sizeof(Sint16)); in SDL_JoystickOpen()
170 SDL_memset(joystick->axes_zero, 0, joystick->naxes * sizeof(Sint16)); in SDL_JoystickOpen()
583 if ((value > joystick->axes_zero[axis] && value >= joystick->axes[axis]) || in SDL_PrivateJoystickAxis()
584 (value < joystick->axes_zero[axis] && value <= joystick->axes[axis])) { in SDL_PrivateJoystickAxis()
757 SDL_PrivateJoystickAxis(joystick, i, joystick->axes_zero[i]); in SDL_JoystickUpdate()
DSDL_sysjoystick.h39 Sint16 *axes_zero; /* Zero point on the axis (-32768 for triggers) */ member
DSDL_gamecontroller.c1020 gamecontroller->joystick->axes_zero[leftTriggerMapping] = (Sint16)-32768; in SDL_GameControllerOpen()
1024 gamecontroller->joystick->axes_zero[rightTriggerMapping] = (Sint16)-32768; in SDL_GameControllerOpen()