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: Multiple Mice in xmame: Got it working!  (Read 3578 times)

0 Members and 1 Guest are viewing this topic.

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
Multiple Mice in xmame: Got it working!
« on: September 06, 2003, 05:56:24 am »
Can anybody offer me any advice as to how to make this work?  I'm using RedHat Linux 9 (Shrike) and multiple USB mice with X-MAME v72.  I have been looking around for how do do it and I can't seem find the right answer.  The XMame site claims to support it.  If anybody can even tell me that they have seen it work, it would be a start.

Thanks in advance,
Jake
« Last Edit: September 09, 2003, 10:34:33 pm by jerryjanis »

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:Multiple Mice in xmame: Got it working!
« Reply #1 on: September 09, 2003, 10:38:53 pm »
Well, this is sort of a one-sided conversation, but I got it working and wrote up exactly how  I did it:

http://jstookey.com/arcade/xmame_installation/

I connected 4 usb mice and 4 player Warlords, Atari Soccer, and Atari Football 4 player.  PS/2 and serial mice will also work together with USB mice.  I used XInput which I'm pretty sure relies on XWindows.
« Last Edit: September 27, 2006, 12:28:28 am by jerryjanis »

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:Yesterday at 03:37:24 pm
  • The Bears Still Suck!
Re:Multiple Mice in xmame: Got it working!
« Reply #2 on: September 09, 2003, 11:49:47 pm »
Hence why my cocktail might end up being linux :)  Don;t even needs a newer mame for my cocktail either.

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re:Multiple Mice in xmame: Got it working!
« Reply #3 on: September 10, 2003, 02:55:19 am »
Cool.  Looks like I'll have a look at xmame source to see if they have any cool tricks.
Robin
Knowledge is Power

Jakobud

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1962
  • Last login:June 30, 2025, 02:20:39 pm
Re:Multiple Mice in xmame: Got it working!
« Reply #4 on: September 10, 2003, 04:31:42 am »
Whoa!  This is huge!  I knew that someone was gonna figure this out someday with Mame and I knew it would be Linux.

Wow this could open so many possiblities.  With a little driver work we could be looking at multiple Act Labs Lightguns in Mame now!  But multiple mice... that alone is just awesome.  Good job jerryjanis!

Performance-wise how much slower is Linux Mame compared to Mame in Winxp?

Lilwolf

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4945
  • Last login:July 31, 2022, 10:26:34 pm
Re:Multiple Mice in xmame: Got it working!
« Reply #5 on: September 10, 2003, 12:11:24 pm »
Anyone test the act-labs gun in linux?

Jakobud

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1962
  • Last login:June 30, 2025, 02:20:39 pm
Re:Multiple Mice in xmame: Got it working!
« Reply #6 on: September 10, 2003, 03:38:31 pm »
How much work has gone into trying to get multiple mice going in Windows?  I did a few searches on it and found this:

"On Microsoft

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:Yesterday at 03:37:24 pm
  • The Bears Still Suck!
Re:Multiple Mice in xmame: Got it working!
« Reply #7 on: September 10, 2003, 03:46:01 pm »
Whoa!  This is huge!  I knew that someone was gonna figure this out someday with Mame and I knew it would be Linux.

Wow, you act like this is new.  Multiple mice has always been in xmame.  linux doesn;t have that issue XP does.

BTW, you figured out what uRebel wants to try but he doesn't have an XP machine.  

AUX

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:October 12, 2006, 04:04:51 pm
  • I'm a llama!
Re:Multiple Mice in xmame: Got it working!
« Reply #8 on: September 10, 2003, 04:21:02 pm »
Does the 3 player trackball version fo Rampart work with this build of xmame?

Jakobud

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1962
  • Last login:June 30, 2025, 02:20:39 pm
Re:Multiple Mice in xmame: Got it working!
« Reply #9 on: September 10, 2003, 05:23:58 pm »
Whoa!  This is huge!  I knew that someone was gonna figure this out someday with Mame and I knew it would be Linux.

Wow, you act like this is new.  Multiple mice has always been in xmame.  linux doesn;t have that issue XP does.


Oh well I always new that multiple mice in Linux was possible, but haven't seen anyone actually do it in Mame until this.

jakejake28

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 683
  • Last login:September 02, 2005, 07:23:54 pm
  • Thank you sir, may I have another?
Re:Multiple Mice in xmame: Got it working!
« Reply #10 on: September 10, 2003, 05:43:13 pm »
Performance-wise how much slower is Linux Mame compared to Mame in Winxp?

havent used it myself, but all my other emus run FASTER when in Mandrake than in XP via duel boot
It's all about the Pentiums

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:Yesterday at 03:37:24 pm
  • The Bears Still Suck!
Re:Multiple Mice in xmame: Got it working!
« Reply #11 on: September 10, 2003, 05:46:54 pm »
I have xmame on my cabinet right now.  It's about the same.

The reason you don;t see people running multiple mice in linux with xmame is that there really isn;t any frontends for linux.  There's gxmame which is the mame32 of linux and advancemenu.  That's aobut it for ones with some decent features.  Most are not cab friendly.  I'm suprised there isn't an opengl FE out there that would work.

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:Multiple Mice in xmame: Got it working!
« Reply #12 on: September 10, 2003, 07:30:24 pm »
Does the 3 player trackball version fo Rampart work with this build of xmame?

No, but there's an updated driver if you're willing to recompile (I just tried it with XMAME and it worked):

http://jstookey.com/arcade/mamefixes/

BTW, you figured out what uRebel wants to try but he doesn't have an XP machine. 

I played around with rawmouse a little bit a few weeks ago - I got some raw info to display about mice and keyboards.  However, as far as I could tell the Microsoft Platform SDK that provides access to the rawinput stuff isn't compatible with MinGW/GCC...  From what I've read, compilers like Borland C++ can support that stuff because they paid MS big money to be told how to do it.  I had to compile my awful test programs with Visual Studio (yuk!).  My impression is that the "dx70_mingw" headers on the MAME downloads page are MS DirectX SDK headers that have been patched to work with mingw, so it is possible to patch them, but I'm far too afraid to look into that option.

There's not much info on the net about rawmouse...  Nobody's touching it with a ten foot pole.  I made a major breakthrough when I found some wacky code that was totally in Korean or something...  The comments were all in crazy "not even letters or numbers or punctuation" text, but the code was solid enlish and explained a lot.  I wonder if I can translate any of those comments with an internet translator?  Anyway, I should dig up that code again and at least make it available in case it's useful to anyone.


It would be great if someday someone was able to just create a standalone windows program that would read the raw inputs from multiple mice, and then of course someone could make Mame support reading those inputs...

Hmmm...  Remember this thread that tricks games into using joysticks?

http://www.arcadecontrols.org/yabbse/index.php?board=1;action=display;threadid=10778;start=0

It would be really friggin' awesome to have a standalone program that would read the rawmouse information from WindowsXP and feed it into something that faked WindowsXP into thinking it had multiple standard mice through DirectX.  Then the Mame code wouldn't have to change at all to support it, and it could be applied to any program.  Eh, maybe the limitation in WindowsXP is more powerful than this.
« Last Edit: September 27, 2006, 12:29:24 am by jerryjanis »

Jakobud

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1962
  • Last login:June 30, 2025, 02:20:39 pm
Re:Multiple Mice in xmame: Got it working!
« Reply #13 on: September 10, 2003, 10:12:40 pm »

Hmmm...  Remember this thread that tricks games into using joysticks?

http://www.arcadecontrols.org/yabbse/index.php?board=1;action=display;threadid=10778;start=0

It would be really friggin' awesome to have a standalone program that would read the rawmouse information from WindowsXP and feed it into something that faked WindowsXP into thinking it had multiple standard mice through DirectX.  Then the Mame code wouldn't have to change at all to support it, and it could be applied to any program.  Eh, maybe the limitation in WindowsXP is more powerful than this.

Yeah, except you can already remap joysticks to act as analog axis's in Mame, can't you?  Or am I wrong about that?  I was thinking about Rampart when I said that, but perhaps I am thinking about the joystick version...

I think the largest advantage to this whole multiple mice thing is this gives us a lot of hope for multiple Act-labs light guns.  This will most likely require some driver writing from Act-labs, but it is totally possible.

And SirPoonga, check out a FE called Lemon Launcher.  Visually and interactively, it's based off of Game Launcher (but the code is completely different).  It's Mame only (unlike GL which can do any command line based emu).  But it's super easy to setup.  I actually might even like it better than GL simply because of it's support for unlimited sub menu's...

http://lemonlauncher.sourceforge.net/

Anyways, there is a downloadable Win32 version and source code for Linux (or Windows) compilation.  Check it out. You might like it.

But Poonga, you are saying that Mame performance under Linux is about the same as WindowsXP?  Don't the latest Mame releases support DirectX hardware stuff?  I would think that would give it a significan edge of Linux.


jakejake28

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 683
  • Last login:September 02, 2005, 07:23:54 pm
  • Thank you sir, may I have another?
Re:Multiple Mice in xmame: Got it working!
« Reply #14 on: September 10, 2003, 11:09:10 pm »
But Poonga, you are saying that Mame performance under Linux is about the same as WindowsXP?  Don't the latest Mame releases support DirectX hardware stuff?  I would think that would give it a significan edge of Linux.


do remember that a linux system can run up to 60 percent faster than a corresponding windows machine...
It's all about the Pentiums

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 11:01:57 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:Multiple Mice in xmame: Got it working!
« Reply #15 on: September 10, 2003, 11:29:16 pm »
Not true at all, a xp machine has about a 60% larger footprint.  Once you get beyond the overhead the performance is about the same.  And if you plan on running a graphical flaovr of linux, it's poor hardware accel support might even hurt you worse, but I can't confirm that last bit.  

jakejake28

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 683
  • Last login:September 02, 2005, 07:23:54 pm
  • Thank you sir, may I have another?
Re:Multiple Mice in xmame: Got it working!
« Reply #16 on: September 10, 2003, 11:32:20 pm »
Not true at all, a xp machine has about a 60% larger footprint.  Once you get beyond the overhead the performance is about the same.  And if you plan on running a graphical flaovr of linux, it's poor hardware accel support might even hurt you worse, but I can't confirm that last bit.  

oh, i am talking about pure command linux, your thinking GUI's right? i dunno much about them, i dont use them...
It's all about the Pentiums

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 11:01:57 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:Multiple Mice in xmame: Got it working!
« Reply #17 on: September 10, 2003, 11:39:13 pm »
Well yeah but think about it.... all the front ends for xmame use xwindows or something similar don't they?

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:Yesterday at 03:37:24 pm
  • The Bears Still Suck!
Re:Multiple Mice in xmame: Got it working!
« Reply #18 on: September 11, 2003, 12:11:35 am »
Minus that lemonlauncher and advmenu.

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re:Multiple Mice in xmame: Got it working!
« Reply #19 on: September 11, 2003, 01:58:36 am »
I played around with rawmouse a little bit a few weeks ago - I got some raw info to display about mice and keyboards.  However, as far as I could tell the Microsoft Platform SDK that provides access to the rawinput stuff isn't compatible with MinGW/GCC...  From what I've read, compilers like Borland C++ can support that stuff because they paid MS big money to be told how to do it.  I had to compile my awful test programs with Visual Studio (yuk!).  My impression is that the "dx70_mingw" headers on the MAME downloads page are MS DirectX SDK headers that have been patched to work with mingw, so it is possible to patch them, but I'm far too afraid to look into that option.

There's not much info on the net about rawmouse...  Nobody's touching it with a ten foot pole.  I made a major breakthrough when I found some wacky code that was totally in Korean or something...  The comments were all in crazy "not even letters or numbers or punctuation" text, but the code was solid enlish and explained a lot.  I wonder if I can translate any of those comments with an internet translator?  Anyway, I should dig up that code again and at least make it available in case it's useful to anyone.

FWIW, I am just starting to look at trying to compile rawinput with gcc, and running into the incompatablity problems you ran into.  :(
Robin
Knowledge is Power

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:Multiple Mice in xmame: Got it working!
« Reply #20 on: September 11, 2003, 04:46:29 am »
I think it's time to start a new thread about multiple mice in Windows XP.

Lilwolf

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4945
  • Last login:July 31, 2022, 10:26:34 pm
Re:Multiple Mice in xmame: Got it working!
« Reply #21 on: September 11, 2003, 09:10:28 am »
btw...

Analinux+ Mame?

Analogux+ Mame?

Analogx Mame?  (rotate the +)

Analog+x+x Mame?  (the +'s and x's are a rotating gif)

ALinux+ Mame?

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:Multiple Mice in xmame: Got it working!
« Reply #22 on: September 11, 2003, 02:27:00 pm »
Hmmm, it's still entirely just XMame...

Just out of curiousity u_rebelscum, does this list incorporate all of the differences between Mame Analog+ and regular Mame?

Potentially hardware-specific code:
Support for 8 controllers.
Dual lightgun support
Splitmouse option
Mappable mouse input
Resetmouse option
Multiple mice
Improved mouse simulation with analog joysticks

Driver changes (should be directly portable):
Support for Druin's interface
Rampart, Sonic 3rd player support
Minor input test changes in namcos2
Bang, Lethald Enf, Oneshot, Underfire lightgun fixes/hacks
720, arch rivals / pigskin, area51 / maximum force fixes/hacks

Jakobud

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1962
  • Last login:June 30, 2025, 02:20:39 pm
Re:Multiple Mice in xmame: Got it working!
« Reply #23 on: September 11, 2003, 03:45:32 pm »
Minus that lemonlauncher and advmenu.

and those two FE's are the only ones that I know of that are cabinet friendly.

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:Yesterday at 03:37:24 pm
  • The Bears Still Suck!
Re:Multiple Mice in xmame: Got it working!
« Reply #24 on: September 11, 2003, 06:14:46 pm »
I am liking lemon launcher, BUT it needs some tweeking.  I like it because it is SDL.

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re:Multiple Mice in xmame: Got it working!
« Reply #25 on: September 11, 2003, 08:07:09 pm »
Hmmm, it's still entirely just XMame...

Just out of curiousity u_rebelscum, does this list incorporate all of the differences between Mame Analog+ and regular Mame?

Potentially hardware-specific code:
Support for 8 controllers.
Dual lightgun support
Splitmouse option
Mappable mouse input
Resetmouse option
Multiple mice
Improved mouse simulation with analog joysticks

Driver changes (should be directly portable):
Support for Druin's interface
Rampart, Sonic 3rd player support
Minor input test changes in namcos2
Bang, Lethald Enf, Oneshot, Underfire lightgun fixes/hacks
720, arch rivals / pigskin, area51 / maximum force fixes/hacks


Pretty much.  

I try to list all the stuff on my features page, but I don't check each and every feature each release, so the page could be out of date or otherwise wrong in parts.
Robin
Knowledge is Power

gndprx

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 115
  • Last login:September 08, 2014, 11:25:49 am
  • nope...
Re:Multiple Mice in xmame: Got it working!
« Reply #26 on: September 12, 2003, 11:46:02 am »
Not very thurough information on LemonLauncher but I have a few questions.

Does it automatically generate game lists and have filters?  (not typing in 4k+ rom names)

Can you jump pages or are you limited to scrolling 1 game at a time.


I'm contemplating linux to replace my xp box in my current cab.  But weary about giving up my mamewah.

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:Yesterday at 03:37:24 pm
  • The Bears Still Suck!
Re:Multiple Mice in xmame: Got it working!
« Reply #27 on: September 12, 2003, 02:05:04 pm »
Not very thurough information on LemonLauncher but I have a few questions.

Does it automatically generate game lists and have filters?  (not typing in 4k+ rom names)
I jut tried it out.  No, you have to generate the lists.  It's odd to, it's a heirarchal menu system.

Quote
Can you jump pages or are you limited to scrolling 1 game at a time.
Yes, ther is a page up and page down button.

Lilwolf

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4945
  • Last login:July 31, 2022, 10:26:34 pm
Re:Multiple Mice in xmame: Got it working!
« Reply #28 on: September 12, 2003, 04:05:40 pm »
btw, I believe that my frontend (JFront) works in Linux.  I haven't tested it in ages...

Anyone interested in testing it, let me know.

I think I'm going to have a new release.  I made a TON of little changes in the last few months because I have a computer in my cab 100% of the time for the first time... sigh... noticed some little annoyances.