Skip to content
Permalink
Browse files

Missed a small part of the patch

  • Loading branch information
slouken committed Jan 24, 2011
1 parent 125b33a commit 3c038e7598e702955595314254872ed60031814b
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/joystick/linux/SDL_sysjoystick.c
@@ -716,10 +716,10 @@ static SDL_bool EV_ConfigJoystick(SDL_Joystick *joystick, int fd)
} else {
joystick->hwdata->abs_correct[i].used = 1;
joystick->hwdata->abs_correct[i].coef[0] =
(absinfo.maximum + absinfo.minimum) / 2 - values[4];
(absinfo.maximum + absinfo.minimum) / 2 - absinfo.flat;
joystick->hwdata->abs_correct[i].coef[1] =
(absinfo.maximum + absinfo.minimum) / 2 + values[4];
t = ((absinfo.maximum - absinfo.minimum) / 2 - 2 * values[4]);
(absinfo.maximum + absinfo.minimum) / 2 + absinfo.flat;
t = ((absinfo.maximum - absinfo.minimum) / 2 - 2 * absinfo.flat);
if ( t != 0 ) {
joystick->hwdata->abs_correct[i].coef[2] = (1 << 29) / t;
} else {

0 comments on commit 3c038e7

Please sign in to comment.