LinuxQuestions.org
Visit Jeremy's Blog.
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 06-06-2005, 09:11 PM   #1
cfalcon
LQ Newbie
 
Registered: Jun 2005
Location: Aurora CO
Distribution: Fedora Core 2
Posts: 2

Rep: Reputation: 0
Arrow Solved- Joystick fails in MAME


I grabbed a Joystick (gamepad, really) today, because MAME with the keyboard isn't as nice as I'd like. Cheap USB thing from Saitek, a P220 pad.

So, I figured I'd plug it in. Ha! Funny. Ok, so first I cat /dev/js0, and it gives some garbage characters. It gives more garbage characters when I press or release buttons. dmesg gives me good data on it, and jscal (not jscalibrator, as I originally thought for some reason) worked dandy.

So, the joystick is good, and Linux recognizes it.

---

Next step was trying to get it to work in MAME. I have the source tree for mame, and I use make to build it. Here I have two questions:

(1)- In the installation procedures, I'm told to run xlistdev. This predictably prints out two components, the keyboard and the mouse, and their names as they appear in /etc/X11/xorg.conf .

But no Joystick. It seems implied by the Makefile and whatnot that I need to have a joystick input device (by default, it wants one named "Joystick", which is fine with me).

How would I create this? I've tried a bunch of variants (more importantly, I've been hammering Google but can't come up with the right search terms or something). This is the latest. Would I add something like this?

Section "InputDevice"
Identifier "Joystick"
Driver "linuxjs"
Option "Device" "/dev/js0"
EndSection

What does my entry need to look for, assuming that X11_JOYTYPE (from the Makefile) needs to point to a valid thing?


(2)- Now, it's possible that I don't *REALLY* need a "Joystick" device at all. Many people seem instead to specify things at the command line, or so sayeth Google. Could I:
xmame.x11 -jt 1 -jdev /dev/js0 sonicwi

Or rather should I be able to, because when I do this it tells me that
Error: joytype 1 is not available

So then edit the Makefile, find an option for JOY_STANDARD, and turn that on. Then I run make (it talks about compiling in support for the joystick and doesn't take very long at all) and make install. Do I need to do something else? Because I still get the same
Error: joytype 1 is not available

Error, which to my mind, I should no longer get (I would expect an error about not having a valid input device in X11 or something).


I'm probably making a newbie mistake or something.


Any advice folks? If you have a joystick, what the heck does your xorg.conf say?






Thanks a lot in advance,


^cfalcon

Last edited by cfalcon; 06-06-2005 at 11:45 PM.
 
Old 06-06-2005, 11:44 PM   #2
cfalcon
LQ Newbie
 
Registered: Jun 2005
Location: Aurora CO
Distribution: Fedora Core 2
Posts: 2

Original Poster
Rep: Reputation: 0
Solved

I did a make clean, then a make, then a make install (the make clean was the new part).

That shouldn't have done a damn thing, but this time it had joystick support.


No X11 objects were needed at all, and some of the changelogs came up in a Google search. The quote was something like, Removed X11 Joystick support because it never worked anyway.

So, there's that.



That was from Nov 04, which is few enough months away that the baggage could still be in the help files and the Makefile.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
kernel compilation fails hard elwoodblues Linux - Laptop and Netbook 0 09-16-2005 03:56 AM
Joystick Driver and API under kernel 2.6.12.3 using an USB joystick dispatcher Linux - Newbie 1 08-06-2005 09:43 AM
X-Mame old version Harp00 Linux - Newbie 0 02-08-2005 05:22 AM
Grub fails to boot when not at beginning of hard drive tisource Linux - Hardware 12 01-05-2005 11:13 AM
oops! took out second hard disk--fs fails to load! sick-o-windoze Linux - Hardware 1 11-29-2003 09:54 PM

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

All times are GMT -5. The time now is 06:25 AM.

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