fceu and usb gamepad - not all buttons configure properly with -inputcfg
Hello,
I'd like to welcome myself to the forums - I've read these for a while and have found them indispensible.
I have a converted snes pad using the chip from Sealie Computing / Retrozone. The gamepad driver is loaded and works fine right out of the box.
# dmesg | grep usb
usbcore: registered new driver usbfs
usbcore: registered new driver hub
usb 1-1: new full speed USB device using uhci_hcd and address 2
usb 2-2: new low speed USB device using uhci_hcd and address 2
usbcore: registered new driver hiddev
input: USB HID v1.00 Gamepad [SealieComputing SuperRetroPad] on usb-0000:00:1d.1-2
Also, the pad has tested fine using hugo to play old PC Engine games. fceu has given me some trouble though. When I run:
$ fceu -fs 1 -inputcfg gamepad somerom.nes
the input configuration seems to choke a bit on the detection of up, down, left and right. When I configure the input to accept keys from the keyboard, I am asked to press each one twice. When I use the gamepad for the configuration, fceu waits for the 'up' entry 3 times in a row and the 'down' entry 4 times, suggesting a problem. The other 2 directions are only asked for twice, but the command output doubles up, suggesting that fceu is getting 2 different signals from the gamepad at each d-pad press. Here is the command line output while configuring:
Starting FCE Ultra 0.98.12...
GamePad #4: A (1)
GamePad #4: A (2)
GamePad #4: B (1)
GamePad #4: B (2)
GamePad #4: SELECT (1)
GamePad #4: SELECT (2)
GamePad #4: START (1)
GamePad #4: START (2)
GamePad #4: UP (1) [[so i press up]]
GamePad #4: UP (2) [[i press up again]]
GamePad #4: UP (3) [[skipped]]
GamePad #4: UP (4) [[i press up for the third time]]
GamePad #4: DOWN (1) [[i press down]]
GamePad #4: DOWN (2) [[i press down again]]
GamePad #4: DOWN (3) [[i press down yet again]]
GamePad #4: DOWN (4) [[i press down again]]
GamePad #4: LEFT (1) [[skipped]]
GamePad #4: LEFT (2) [[i press left]]
GamePad #4: LEFT (3) [[i press left]]
GamePad #4: LEFT (4) [[skipped]]
GamePad #4: RIGHT (1) [[ipress right]]
GamePad #4: RIGHT (2) [[skipped]]
GamePad #4: RIGHT (3) [[i press right]]
GamePad #4: RIGHT (4) [[skipped]]
GamePad #4: Rapid A (1)
GamePad #4: Rapid A (2)
GamePad #4: Rapid B (1)
GamePad #4: Rapid B (2)
So I'm guessing there is a problem with fceu and my joystick driver. When I try to play a game, the left and right are fine but up and down are translated into left and right instead. Maybe the d-pad buttons are not considered normal buttons (some kind of axes thing)? fceu doesn't seem to have a forum - and I've googled a bit with no luck. If this is a unique problem to me, can someone help with diagnosis?
hugo gave this when it loads:
$ hugo
* Initing sound...Found 1 joypad
* PCE joypad 1: SealieComputing SuperRetroPad, 2 axes, 16 buttons
I am running debian sarge with 2.6.10 kernel. fceu was installed via apt-get, not from source. no configuration was done on the joystick.
Thanks for the help
|