Skip to content

Commit

Permalink
Missed a small part of the patch
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 24, 2011
1 parent 125b33a commit 3c038e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/joystick/linux/SDL_sysjoystick.c
Expand Up @@ -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 {
Expand Down

0 comments on commit 3c038e7

Please sign in to comment.