The NEW Build Your Own Arcade Controls
Main => Software Forum => Topic started by: whammoed on July 05, 2004, 08:21:14 pm
-
Has anyone out there got a mouse to work in advmame and linux? I have tried both compiling the event interface in the kernel and using device_mouse event
Also tried using device_mouse raw and setting up the device_raw... options in advmame.rc
If you have it working please let me know which way and post the appropriate lines in your advmame.rc
thanks
-
Bump.
For my own sanity I need to get this working. Surely someone has had success with a mouse in advmame and linux. $20 goes to the person that gives me a clue leading to the successful implementation of a mouse/mice using either the event or raw option. I spent too much of my 3 day weekend trying to figure this out. I am using gentoo linux 2.6.5 and have tried both ps2 and usb mice. I have mousex entries as well as eventx entries in /dev/input/
-
Ouch, Gentoo. I tried Gentoo, but gave up. I have had great success using the ArcadeCD distribution of Advancemame and using a mouse.
-
Just a thought, but have you tried using Genkernel instead or configuring your own kernel? Then once it is working, poke around and see what is different. Don't trash your 2.6 kernel, just dual boot to genkernel.
Similarly, boot up a knoppix disc and dmesg to see what it did at boot.
Are you running Advmame under X or console mode?
-
Also, this refers to a touchpad, but it may give some clues
http://forums.gentoo.org/viewtopic.php?t=125338&highlight=mouse+svgalib
Edited to add this link:
http://forums.gentoo.org/viewtopic.php?t=55665&highlight=mouse+svgalib
which talks about getting a USB mouse to work in framebuffer mode
-
I am running advmame from the command line. I assume this is "console mode". Sorry not real familiar with the terminology yet. The mice work when I run KDE...don't know if that tells me anything. I will take a look at those links.
-
the mice I have hooked up to my linux box have all worked in xmame. I know the one for my tball works in advmame when I had linux on my cabinet. It just worked :) I didn't compile it though, just ran with the binary.
In the rc file you might have to enable mouse like you do in the windows versions of mame.
-
yes, i have tried both
device_mouse event
and
device_mouse raw (also set up device_raw* settings in advmame.rc)
with no luck so far
I have more than one trackball/spinner so other options for mouse will not do
-
I have also tried
device_mouse auto obviously (or not) ;D
if i run in a window in kde the mouse sort of works with
device_mouse auto or device_mouse sdl
It will move when the cursor is actually over the game. This does not work at all when not in kde
-
I had multiple USB mice working in AdvanceMame (without X) at one point a while back... Let me check my notes. Here's what I wrote down:
- ps2, logitech, ms didn't work, but imps2 did:
device_raw_mousedev[0..3] auto
device_raw_mousetype[0..3] imps2
Also try the following if you want to specify which mouse controls which player:
device_raw_mousedev[0..3] /dev/input/mouse0
Don't forget to try the advm program to test your mice. If I run the following command:
$advm -device_mouse raw
I am able to watch mouse data scroll accross the screen.
Good luck getting it to work!
(EDIT) Oh, yeah, I should also mention that Iwas running advmame in console mode, so I wasn't running KDE or X or anything like that. I was using SVGALIB. It was a stock Mandrake kernel that I was running. I'm currently working on the Framebufer w/Matrox card.
-
jerryjanis,
thanks for the post, I tried those settings before and now I have tried them again. just keeps telling me Unable to initialize the mouse driver. the errors are: raw: no mouse found
Either I am missing something or it has something to do with framebuffer. I haven't found anyone who has a mouse working with framebuffer.
-
jerryjanis, you may want to reconsider the framebuffer and matrox idea, see this thread:
http://www.arcadecontrols.org/yabbse/index.php?board=4;action=display;threadid=21402;start=0#lastPost
-
RESOLVED!!!
SOLUTION: User you are logged in as must have permission on /dev directory. Although you point the raw mouse(s) to /dev/input/mouse# it is not good enough to have permission on /dev/input. I don't know why, but who cares, it works, and with raw mouse you can specify up to 4 mouse devices uniquely!!! very cool. I will promptly pay myself $20 ::) Seriously though, thanks to those who posted, I appreciate all the help I get from this forum. You guys rock!