I spent the weekend setting up my Pi with PiPlay and am REALLY impressed with how it all works so far :) I'm building a retro arcade machine "for my children" and am putting the Pi and parts into a control panel with joystick and buttons etc. These work through an encoder (Xin Mo compatible) and work fine using Mame on a PC once configured.
The problem I'm having is that the joystick isn't working in either the menu or within games. The buttons are so I "think" I've set the config files up correctly. When tested using "jstest /dev/input/js0" then I can see the joystick is working ok and it gives the following results:
I did try this previously (and just did again to double check!) but it's still not working :(
Wouldn't pygame be looking for a 1/-1 and be getting returned the 32676/-32676 value hence it not working? Do you know if there is any way to map the joystick output to the correct values maybe?
Boo! I just tried that change to the drift and it made no difference :( I'm sure the spacing is correct and even started with the original file again.
Just to clarify, as I'm not sure if this makes a difference; the joystick isn't analogue but has 4 microswitches. In jstest it goes from 0 straight to 32676 or -32676.
I'm stumped and gutted as I really wanted to have it ready for tomorrow when my 5 year old returns from holiday :(
Your joytick is reporting the movments on Hat0X and Hat0Y, and for whatever reason this is not working in Piplay UI, Mame4All, but working properly on AdvMame.
I was able to change my joystick from Hat mode to Analog mode reporting the movments on 0 & 1 axis. This solved the issue.
Again, this is not going to provide you a solution but will give you some hints to investigate further.