Amiga.org

The "Not Quite Amiga but still computer related category" => Amiga Emulation => Topic started by: andre77 on November 29, 2007, 01:46:53 PM

Title: joystick problem with e-uae in linux
Post by: andre77 on November 29, 2007, 01:46:53 PM
hi everybody. I have a problem with e-uae in linux and a usb-joystick. First of all the joystick works great with xmame and zsnes while in e-uae it doesn't work. It is seen by the emulator because in the gui i can choose it in the Game ports menu. But when i try to play with a game i have no right,left,up,down movement but only a fire button work.

I thing that the problem could be the axis number of joystick.In fact if I launch the jstest utility and i try to move up and down and left and right the joypad I see that the axis in question are not 0 and 1 but 2 and 3.

Code: [Select]
[andre@amilo ~]$ jstest /dev/input/js0
Driver version is 2.1.0.
Joystick (USB Joystick      USB Joystick     ) has 6 axes (X, Y, Z, Rx, (null), (null))
and 10 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2, PinkieBtn, BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4).
Testing ... (interrupt to exit)
Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0 Buttons:  0:ofAxes:  0:-32767  1:     0  2:     0  3:     0  4:     0  5:     0 Buttons:  0:ofAxes:  0:-32767  1:-32767  2:     0  3:     0  4:     0  5:     0 Buttons:  0:ofAxes:  0:-32767  1:-32767  2:-32767  3:     0  4:     0  5:     0 Buttons:  0:ofAxes:  0:-32767  1:-32767  2:-32767  3:-32767  4:     0  5:     0 Buttons:  0:ofAxes:  0:-32767  1:-32767  2:-32767  3:-32767  4:-32767  5:     0 Buttons:  0:ofAxes:  0:-32767  1:-32767  2:-32767  3:-32767  4:-32767  5:-32767 Buttons:  0:ofAxes:  0:     0  1:-32767  2:-32767  3:-32767  4:-32767  5:-32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:-32767  3:-32767  4:-32767  5:-32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:-32767  4:-32767  5:-32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4:-32767  5:-32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4: 32767  5:-32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:-32767  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:-32767  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:-32767  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2: 32767  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2: 32767  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2: 32767  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3: 32767  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3: 32767  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3: 32767  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:-32767  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:-32767  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:-32767  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2: 32767  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:-32767  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3: 32767  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2: 32767  3:     0  4: 32767  5: 32767 Buttons:  0:ofAxes:  0:     0  1:     0  2:     0  3:     0  4: 32767  5: 32767 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9:off



so i have tried to modify my .uaerc file in from

Code: [Select]

input.1.joystick.0.disabled=0
input.1.joystick.0.axis.0=JOY1_HORIZ.0
input.1.joystick.0.axis.0=JOY1_VERT.0
input.1.joystick.0.button.0=JOY1_FIRE_BUTTON.0
input.1.joystick.0.button.1=JOY1_2ND_BUTTON.0
input.1.joystick.0.button.2=JOY1_3RD_BUTTON.0


to

Code: [Select]

input.1.joystick.0.disabled=0
input.1.joystick.0.axis.2=JOY1_HORIZ.0
input.1.joystick.0.axis.3=JOY1_VERT.0
input.1.joystick.0.button.0=JOY1_FIRE_BUTTON.0
input.1.joystick.0.button.1=JOY1_2ND_BUTTON.0
input.1.joystick.0.button.2=JOY1_3RD_BUTTON.0


but it doesn't work.

any idea?
Title: Re: joystick problem with e-uae in linux
Post by: bilko9070 on January 08, 2008, 05:15:16 PM
Id also like to get custom joypad configs working with euae but my attempts at editing the joypad sections of config files have also been unsuccessful.

Have you made any progress?