2003-07-28 13:25:38

by mdew

[permalink] [raw]
Subject: USB BADPAD Quirk broken again

"BADPAD quirk handling", is currently broken in 2.4.22-pre7-8, the
patches
you gave me worked fine (before its inclusion into 2.4), but for
somereason (in Mame) the joypad will not properly center. In other
words, its being being force UP without any input. If you need more
debug info, gimme a yell.

mdew:~# jscal -c /dev/input/js0
Joystick has 2 axes and 8 buttons.
Correction for axis 0 is broken line, precision is 0.
Coeficients are: 112, 142, 5534751, 5534751
Correction for axis 1 is broken line, precision is 0.
Coeficients are: 112, 142, 5534751, 5534751

Calibrating precision: wait and don't touch the joystick.
Done. Precision is:
Axis: 0: 0
Axis: 1: 0

Move axis 0 to minimum position and push any button.
Hold ... OK.
Move axis 0 to center position and push any button.
Hold ... OK.
Move axis 0 to maximum position and push any button.
Hold ... OK.
Move axis 1 to minimum position and push any button.
Hold ... OK.
Move axis 1 to center position and push any button.
Hold ... OK.
Move axis 1 to maximum position and push any button.
Hold ... OK.

Setting correction to:
Correction for axis 0: broken line, precision: 0.
Coeficients: 0, 0, -4194176, 2105312
Correction for axis 1: broken line, precision: 0.
Coeficients: 255, 255, 2105312, -4227201

in xmame, what happens, the gamepad will initially point to one side,
tho after a little more use (all while playing the one game) it'll
correct itself. this is repeated, often.

Ive attached your orginal patches to the email..
hid-badpad.diff/hid-badpad-2.diff are the orginal working patches.

--
mdew <[email protected]>


Attachments:
hid-badpad.diff (3.37 kB)
hid-badpad-2.diff (2.73 kB)
dmesg (14.96 kB)
Download all attachments