src/joystick/haiku/SDL_haikujoystick.cc
changeset 10714 a9c15922ad7b
parent 10617 346c02ff71b6
child 10737 3406a0f8b041
     1.1 --- a/src/joystick/haiku/SDL_haikujoystick.cc	Thu Dec 22 17:33:45 2016 -0800
     1.2 +++ b/src/joystick/haiku/SDL_haikujoystick.cc	Thu Dec 22 18:43:00 2016 -0700
     1.3 @@ -197,7 +197,7 @@
     1.4  
     1.5          /* Generate axis motion events */
     1.6          for (i = 0; i < joystick->naxes; ++i) {
     1.7 -            change = ((int32) axes[i] - joystick->axes[i]);
     1.8 +            change = ((int32) axes[i] - joystick->axes[i].value);
     1.9              if ((change > JITTER) || (change < -JITTER)) {
    1.10                  SDL_PrivateJoystickAxis(joystick, i, axes[i]);
    1.11              }