Click to See Complete Forum and Search --> : xmame xlistdev ---> No joystick


just4spam
08-26-2003, 10:12 PM
I am trying to get my Logitech Wingman USB joystick working with xmame.

It works perfect with ZSNES (Super Nintendo emulator)
after loading modprobe joydev

However, when I go to complie xmame, the readme specifies that you have to run make xlistdev; ./xlistdev to see what input devices are available and what to set the X11_JOYDEV variable in the Makefile to complie

Here is what I get::

[root@localhost root]# make xlistdev; ./xlistdev

The number of available input devices is 3

Device id is 0
Device type is 118
Device name is Mouse1
Num_classes is 2
Input class is 1
Length is 12
Num_buttons is 5
Input class is 2
Length is 44
Num_axes is 2

Min_value is 0
Max_value is 1279
Resolution is 1

Min_value is 0
Max_value is 1023
Resolution is 1


Device id is 1
Device type is 119
Device name is NVIDIA Event Handler
Num_classes is 0

Device id is 2
Device type is 0
Device name is keyboard
Num_classes is 1
Input class is 0
Length is 16
Num_keys is 248
Min_keycode is 8
Max_keycode is 255


As you can see no mention of my joystick. When I start up a game in xmame (say street fighter 2) and hit tab to configure the game input I get no response from my joystick.

cat /dev/js0 ---> gives me some garbaged output so I know its working.............

I tried searching here and on G4L

mdwatts
08-27-2003, 05:18 AM
Besides loading the joydev module, have you loaded all the other required modules such as usb?

Ryochan7
08-27-2003, 05:53 AM
Originally posted by just4spam
I am trying to get my Logitech Wingman USB joystick working with xmame.

It works perfect with ZSNES (Super Nintendo emulator)
after loading modprobe joydev

However, when I go to complie xmame, the readme specifies that you have to run make xlistdev; ./xlistdev to see what input devices are available and what to set the X11_JOYDEV variable in the Makefile to complie.

I never used make xlistdev before, so I can't help you there; I guess that I must have skipped that part of the README. What I did was edit the makefile to include support for X11 joystick, or somethig like that; sorry, but right now I am on windoze so I can't view the file even with explore2fs. It took me a while before I could get my USB joypad to work with Xmame, but I triumphed. Since you have all the modules loaded and running so that your joystick will work with Zsnes, I would think that you should be able to use it with Xmame, even if it takes a couple of compiles to get it working. Sorry I couldn't be of anymore help.

SuperNu
08-27-2003, 10:12 AM
Looking at your system specs, I see that you are running RedHat 9. You can download RPMs for RedHat by going to http://freshrpms.net. I have downloaded and installed XMame RPMs from there and haven't had any problems using XMame.

After checking the link, it looks like Matthias is protesting software patents, so he closed his site temporarily. You can get packages at http://shrike.freshrpms.net.

--SN

mdwatts
08-27-2003, 11:54 AM
Originally posted by SuperNu

After checking the link, it looks like Matthias is protesting software patents, so he closed his site temporarily. You can get packages at http://shrike.freshrpms.net.

--SN

Just click on "click here" on the freshrpms.net page to enter the site.

To enter this site, click here.

Same as in the gnome.org thread in /dev/random. Doesn't anyone read? :D

Hayl
08-27-2003, 01:52 PM
have you looked at this thread?

http://forums.gentoo.org/viewtopic.php?t=52782&highlight=usb+xmame

just4spam
08-27-2003, 07:34 PM
Mdwatts, yes all the required modules for the joystick are loaded, as mentioned the joystick works perfect with Zsnes...Thanks

SuperNu, Sorry I've been meaning to update my system specs, actually I am running Mandrake 9.1. After downloading the RPMS for Xmame, how did u get your joystick to work? THanks

Ryochan7, I am sure I will with some help. Thanks

Hayl, I will do that tonight, thanks


Any other suggestions??

Hayl
08-27-2003, 07:45 PM
Originally posted by just4spam
Any other suggestions??

i installed it today.

i had to re-emerge it (gentoo) because i didn't know it had a USE flag "joystick" to give it joystick support :(

my problem ended up being that i was putting in the entire path including the js number per the post on teh gentoo forums i gave you.

mine is working now though

Ryochan7
08-29-2003, 05:46 AM
I am finally back on Linux after a couple of days, maybe I can try to explain a bit further about what I was trying to say. Making Xmame work with my Thrustmaster USB Joypad was fairly simple once I messed up a couple of times. All that I needed was to uncomment one line in the xmame makefile and I could finally use my joystick with Xmame via the Gxmame frontend. The line that I had to uncomment was the x86-based joystick support line, not the X11 Joystick. I have included a portion of my xmame makefile for no reason just to show the portion that had to be changed. Later.


################################################## #########################
# Input Devices
################################################## #########################

# Uncomment any joystick types that you want to use; the one that is
# actually used can be selected at runtime with the -joytype switch.

# X Input Extensions-based joystick. This is known to not work right now.
# JOY_X11 = 1

# On x86-based OSes, if supported, you can use standard joystick driver.
JOY_I386 = 1

# Linux FM-TOWNS game pad joystick emulation support. Thanks to Osamu
# Kurati.
JOY_PAD = 1

# NetBSD/FreeBSD USB joystick support.
# JOY_USB = 1

# PlayStation2-linux native pad support.
# JOY_PS2 = 1

# This will enable the use of the Happ Controls UGCI(tm) USB devices'
# Coin/Start inputs using the libugci library available from
# http://www.phunnypharm.org/ugci/
# UGCICOIN = 1