Searched refs:axes_zero (Results 1 – 3 of 3) sorted by relevance
146 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()
39 Sint16 *axes_zero; /* Zero point on the axis (-32768 for triggers) */ member
1020 gamecontroller->joystick->axes_zero[leftTriggerMapping] = (Sint16)-32768; in SDL_GameControllerOpen()1024 gamecontroller->joystick->axes_zero[rightTriggerMapping] = (Sint16)-32768; in SDL_GameControllerOpen()