xbox mat

Chris Bainbridge C.J.Bainbridge at ed.ac.uk
Fri Mar 26 13:04:19 EST 2004


Hi, I have an xbox running linux with the logic 3 xbox mat. Its identified as 
a HID device in linux, and appears as /dev/js0. I can run jstest, and see 
that as I stomp on the mat the buttons are pressed. However, when I run 
pydance I get:

1 joystick(s) found.
Joystick 0 initialized: 6 axes, 16 buttons.
Loaded input configuration.
pydance 0.9.1 <pyddr-discuss at icculus.org> - irc.freenode.net/#pyddr
etc..

but stepping on the mat does nothing and I'm stuck at the menu. Running jstest 
shows that the first ten buttons of js0 correspond to the 8 mat squares and 
start, select buttons.

The xbox joypad (with xpad driver) also creates a joystick device. This time 
when I run pydance I get:

1 joystick(s) found.
Joystick 0 initialized: 14 axes, 10 buttons.
Loaded input configuration.
etc.

Now I can use some keys on the pad to navigate around but can only get as far 
as selecting the song.

What is odd is that the buttons for navigating the menu work with the xbox pad 
(eg. A on the pad sends a press on button 8, which moves down in the menu) 
but the same event generated by the mat (a stomp on down-left square, sends 
button 8 press) doesn't do anything. Since the events are the same is pydance 
doing something odd with them?

Is there any way to get this mat working? I have tried mapping the mat buttons 
onto key presses using a program called joy2key, but this didn't work, 
probably because I am starting pydance from a remote ssh session and it 
doesn't seem to read key presses from the controlling tty. There is no 
x-windows and I don't have a keyboard, so I have no other way to navigate 
through the menus.

Thanks for your help!



More information about the pyddr-discuss mailing list