Missed a small part of the patch
--HG-- branch : SDL-1.2
This commit is contained in:
parent
41a38082c1
commit
dad7b720ca
1 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue