src/joystick/haiku/SDL_haikujoystick.cc
changeset 10714 a9c15922ad7b
parent 10617 346c02ff71b6
child 10737 3406a0f8b041
equal deleted inserted replaced
10713:580fcf8605e3 10714:a9c15922ad7b
   195         stick->GetHatValues(hats);
   195         stick->GetHatValues(hats);
   196         buttons = stick->ButtonValues();
   196         buttons = stick->ButtonValues();
   197 
   197 
   198         /* Generate axis motion events */
   198         /* Generate axis motion events */
   199         for (i = 0; i < joystick->naxes; ++i) {
   199         for (i = 0; i < joystick->naxes; ++i) {
   200             change = ((int32) axes[i] - joystick->axes[i]);
   200             change = ((int32) axes[i] - joystick->axes[i].value);
   201             if ((change > JITTER) || (change < -JITTER)) {
   201             if ((change > JITTER) || (change < -JITTER)) {
   202                 SDL_PrivateJoystickAxis(joystick, i, axes[i]);
   202                 SDL_PrivateJoystickAxis(joystick, i, axes[i]);
   203             }
   203             }
   204         }
   204         }
   205 
   205