Artur Szymiec wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Vitaliy Margolen napisał(a):
Artur Szymiec wrote:
Here is attached patch
for joystick_linuxinput.c where bug in dead zone
calculation make joystick unusable. After correction
tested in two games and works properly.
Best
Artur Szymiec wrote:
Here is attached patch
for joystick_linuxinput.c where bug in dead zone
calculation make joystick unusable. After correction
tested in two games and works properly.
Thanks for spotting the problem. Unfortunately your patch has few
problems too. I'll sending a
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Vitaliy Margolen napisał(a):
Artur Szymiec wrote:
Here is attached patch
for joystick_linuxinput.c where bug in dead zone
calculation make joystick unusable. After correction
tested in two games and works properly.
Best Regards
Artur Szymiec
On Wednesday 15 August 2007, Andrew Talbot wrote:
Kuba Ober wrote:
You calculating center wrong:
+ ret = (props-lMax-props-lMin)/2;
This won't work for min=1000 max=2000.
But it does. Maybe you meant if min/max were switched? In such case
ret = (props-lMax-props-lMin)/2;
if
Kuba Ober wrote:
You calculating center wrong:
+ ret = (props-lMax-props-lMin)/2;
This won't work for min=1000 max=2000.
But it does. Maybe you meant if min/max were switched? In such case
ret = (props-lMax-props-lMin)/2;
if (props-lMax props-lMin) ret = -ret;
Cheers, Kuba
If
Artur Szymiec wrote:
Here is attached patch
for joystick_linuxinput.c where bug in dead zone
calculation make joystick unusable. After correction
tested in two games and works properly.
Best Regards
Artur Szymiec
Thanks for spotting the problem. Unfortunately your patch has few problems