dstover1688 / mame4all-pi

Automatically exported from code.google.com/p/mame4all-pi
0 stars 0 forks source link

Need more joystick axis to support 8 axis XBOX controller #43

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. connect an xbox gamester joystick with a USB adapter
2. check it with jstest - all working ok

Driver version is 2.1.0
Joystick (Generic X-Box pad) has 8 axes (X, Y, Z, Rx, Ry, Rz, Hat0X, Hat0Y)
and 10 buttons (Btnx, BtnY, BtnZ, BtnTL, BtnTR, BtnTL2, BtnThumbL, BtnThumbR, 
?, ?).

Axes 6 is left/right (-32767 to 32767)
Axes 7 is up/down (32767 to -32767)

3. run mame4all, press TAB, buttons can be configured, but joystick movement 
not recognized

What is the expected output? What do you see instead?
That joystick should be recognized in MAME itself and also the frontend (I have 
set the mame.cfg values as below):
AXIS_LR=6
AXIS_UD=7

What version of the product are you using? On what operating system?
On raspberry pi 256MB model, _September 02, 2013:_ version

Please provide any additional information below.
I've seen in the readme and on issue #17 you were able to add more axes, I 
think you only went up to 6 axes though, is it possible to extend it to 8?

Original issue reported on code.google.com by m...@blazingcrab.com on 1 Nov 2014 at 8:21

GoogleCodeExporter commented 8 years ago
Tried the code change in issue #33 and recompiled, didn't make a difference 
(yet - although I think it will help in the future).

Re-read through the other issues and got the sdljoystick file and ran that:

pi@raspberrypi ~ $ ./sdljoystick 
1 joysticks found
6 numaxes
0 numballs
1 numhats
10 numbuttons

so I don't yet know what SDL is, but it's not recognizing the 8 axes and is 
only showing 6. I'll see if I can figure out how to fix that and will post back

Original comment by m...@blazingcrab.com on 1 Nov 2014 at 9:26