LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 08-17-2005, 06:13 PM   #1
skallywag
LQ Newbie
 
Registered: Aug 2005
Location: biking in nyc traffic
Distribution: debian sarge/etch
Posts: 2

Rep: Reputation: 0
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
 
Old 08-18-2005, 11:38 AM   #2
skallywag
LQ Newbie
 
Registered: Aug 2005
Location: biking in nyc traffic
Distribution: debian sarge/etch
Posts: 2

Original Poster
Rep: Reputation: 0
I just tried installing from 0.98.12-1 binaries instead of the .deb, but still no luck.
 
Old 08-23-2005, 08:32 PM   #3
nfnd
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
had the same problem but with a gravis gamepad

you have to type it like this

fceu -inputcfg gamepad1 somefile.nes


it was really pissing me off too
 
Old 09-04-2007, 08:13 AM   #4
wongdg
Member
 
Registered: May 2006
Location: Kuching, Malaysia
Distribution: Debian 2.4 & 2.6
Posts: 44

Rep: Reputation: 16
Valid Command

i did it with the following command call:

fceu -input1 gamepad -inputcfg gamepad1 snes_rom.nes
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Usb Gamepad LostNLinux Linux - General 7 05-27-2005 05:27 PM
problem with usb gamepad ilinkolov Linux - Hardware 6 12-01-2004 09:54 PM
USB Gamepad mykrob Linux - Hardware 6 08-12-2004 08:32 PM
slackware 9.1 and USB gamepad fyrebird Slackware 2 12-01-2003 10:39 AM
Non-USB Sidewinder gamepad R0N1N Linux - Hardware 0 04-15-2003 04:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 02:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration