95 Sint16 moved = SDL_JoystickGetAxis(
joystick, i);
97 if ( (moved != axes[i]) ) {
98 int deltaMoved = abs(axes[i] - moved);
102 axisRepeatTimers[i].restart();
109 axisRepeatTimers[i].restart();
114 Uint8 changed = SDL_JoystickGetButton(
joystick, i);
115 if ( (changed != buttons[i]) ) {
117 buttons[i] = changed;
118 buttonRepeatTimers[i].restart();
122 buttons[i] = changed;
125 buttonRepeatTimers[i].restart();
127 for (i = 0; i <
numHats; i++) {
128 Uint8 changed = SDL_JoystickGetHat(
joystick, i);
129 if ( (changed != hats[i]) ) {
132 hatRepeatTimers[i].restart();
139 hatRepeatTimers[i].restart();
144 SDL_JoystickGetBall(
joystick, i, &dx, &dy);
145 if ( dx != 0 || dy != 0 )