Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: mouse in advmame and linux? [RESOLVED!!]  (Read 3483 times)

0 Members and 1 Guest are viewing this topic.

whammoed

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2307
  • Last login:Today at 03:42:00 pm
  • Crack don't smoke itself
    • NiceMite
mouse in advmame and linux? [RESOLVED!!]
« 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
« Last Edit: July 12, 2004, 05:55:27 pm by whammoed »

whammoed

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2307
  • Last login:Today at 03:42:00 pm
  • Crack don't smoke itself
    • NiceMite
Re:mouse in advmame and linux? $$CASH REWARD$$
« Reply #1 on: July 06, 2004, 10:52:18 am »
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/

NoBonus

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 688
  • Last login:January 07, 2007, 06:48:58 pm
  • "Now that's a fine example of California's Gold"
Re:mouse in advmame and linux? $$Cash Reward$$
« Reply #2 on: July 06, 2004, 11:31:20 am »
Ouch, Gentoo.  I tried Gentoo, but gave up.  I have had great success using the ArcadeCD distribution of Advancemame and using a mouse.

GadgetGeek

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 414
  • Last login:September 03, 2014, 09:59:01 am
  • whatever
Re:mouse in advmame and linux? $$Cash Reward$$
« Reply #3 on: July 06, 2004, 01:45:00 pm »
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?

GadgetGeek

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 414
  • Last login:September 03, 2014, 09:59:01 am
  • whatever
Re:mouse in advmame and linux? $$Cash Reward$$
« Reply #4 on: July 06, 2004, 01:47:56 pm »
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
« Last Edit: July 06, 2004, 02:17:40 pm by GadgetGeek »

whammoed

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2307
  • Last login:Today at 03:42:00 pm
  • Crack don't smoke itself
    • NiceMite
Re:mouse in advmame and linux? $$Cash Reward$$
« Reply #5 on: July 06, 2004, 02:31:03 pm »
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.

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8183
  • Last login:April 12, 2023, 09:22:35 pm
  • The Bears Still Suck!
Re:mouse in advmame and linux? $$Cash Reward$$
« Reply #6 on: July 06, 2004, 04:17:56 pm »
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.

whammoed

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2307
  • Last login:Today at 03:42:00 pm
  • Crack don't smoke itself
    • NiceMite
Re:mouse in advmame and linux? $$Cash Reward$$
« Reply #7 on: July 06, 2004, 05:16:55 pm »
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

whammoed

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2307
  • Last login:Today at 03:42:00 pm
  • Crack don't smoke itself
    • NiceMite
Re:mouse in advmame and linux? $$Cash Reward$$
« Reply #8 on: July 06, 2004, 07:47:42 pm »
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

jerryjanis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 821
  • Last login:February 02, 2023, 01:56:44 am
  • Skate or Die!!!
    • Jake's Joystick
Re:mouse in advmame and linux? $$Cash Reward$$
« Reply #9 on: July 06, 2004, 09:51:17 pm »
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.
« Last Edit: July 06, 2004, 10:03:09 pm by jerryjanis »

whammoed

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2307
  • Last login:Today at 03:42:00 pm
  • Crack don't smoke itself
    • NiceMite
Re:mouse in advmame and linux? $$Cash Reward$$
« Reply #10 on: July 08, 2004, 07:07:42 pm »
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.

whammoed

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2307
  • Last login:Today at 03:42:00 pm
  • Crack don't smoke itself
    • NiceMite
Re:mouse in advmame and linux? $$Cash Reward$$
« Reply #11 on: July 10, 2004, 12:41:20 am »
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

whammoed

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2307
  • Last login:Today at 03:42:00 pm
  • Crack don't smoke itself
    • NiceMite
Re:mouse in advmame and linux? $$Cash Reward$$
« Reply #12 on: July 12, 2004, 05:54:44 pm »
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!