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: Using the same buttons for mouse and player 2?  (Read 3181 times)

0 Members and 1 Guest are viewing this topic.

phishpac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 138
  • Last login:October 15, 2009, 10:42:19 am
    • grateful arcade
Using the same buttons for mouse and player 2?
« on: April 27, 2008, 03:13:23 pm »
I have done some searching, but have struggled to find help on this topic.  I would like to two of player 2's buttons on my control panel as the left and right mouse buttons for my trackball.  I have it wired up, but windows thinks when I'm left clicking that I'm hitting "a" on my keyboard.  I'm sure there is a very simple answer to this, but I am  :dunno:

Thanks!

oh yeah.. I'm using mame, mala, and an IPAC on windows xp pro

severdhed

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2975
  • Last login:December 14, 2024, 05:01:52 pm
  • RIP Dinosaur Hippo
Re: Using the same buttons for mouse and player 2?
« Reply #1 on: April 27, 2008, 05:21:30 pm »
i was trying to do this the other day, someone mentioned you could use autokotkey to do it with a script, but when i tried it, it just didn't work.  i only messed with it for a few minutes, but people claim that it works.  maybe someone with a little more experience could chime in, because i would like to know this as well.
Current Projects:      Zak-Man | TMNT Pedestal | SNES Pi | N64 Odroid
Former Projects:     4 Player Showcase | Donkey Kong | iCade

TOK

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3604
  • Last login:January 24, 2024, 05:14:24 pm
  • The Game Always Wins
Re: Using the same buttons for mouse and player 2?
« Reply #2 on: April 27, 2008, 06:01:36 pm »
Sounds like my setup might be different from yours, but I have the Happ 3" ball that has 3 buttons wired as mouse buttons.
I put those buttons as the bottom row of player 1, then just reconfigured the MAME defaults.

For example, in a game like Street Fighter that uses all the buttons
1 2 3  are regular MAME/IPAC defaults
4 5 6 are mouse 1, 2 and 3 remapped in MAME as 4, 5 and 6.

protokatie

  • I DO try to be insulting and horrible to my fellow Terran
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1396
  • Last login:March 27, 2012, 09:36:43 pm
  • Is anyone here a member of team retard?
Re: Using the same buttons for mouse and player 2?
« Reply #3 on: April 27, 2008, 06:27:30 pm »
Quote
i was trying to do this the other day, someone mentioned you could use autokotkey to do it with a script, but when i tried it, it just didn't work.  i only messed with it for a few minutes, but people claim that it works.  maybe someone with a little more experience could chime in, because i would like to know this as well.

Unless you are really good at autohotkey scripting (I am not but wrote a working script), autohotkey needs a modifier (such as alt or ctrl) for it to trigger anything. (This is in the script itself, dunno if I was the one who gave you the script or not, but I have a simple one.) Basically for me, I didnt care that I would have to hold down on a modifier key on the CP to get mouse clicks to work, as using the mouse buttons for me was only so I could deal with the OS without attaching a mouse (I mapped P1's joystick to control mouse movement)...

Try playing around with autohotkey a bit more, and look at the examples and commands on their site.
--- Yes I AM doing this on purpose, and yes I DO realize it is pissing you off.

---If my computers were cats, my place would look like an old widows house, with half of the cats having obvious health problems

phishpac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 138
  • Last login:October 15, 2009, 10:42:19 am
    • grateful arcade
Re: Using the same buttons for mouse and player 2?
« Reply #4 on: April 27, 2008, 07:26:36 pm »
tok that makes perfect sense.  I shouldn't be trying to have one button physically wired to do two functions.  Instead I should be telling mame that player 2 will be using the mouse keys as two of its buttons.

Thanks.. when I get a chance I will do this and report back.

massive88

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 938
  • Last login:February 26, 2024, 02:21:01 pm
Re: Using the same buttons for mouse and player 2?
« Reply #5 on: April 27, 2008, 09:48:32 pm »
I should be telling mame that player 2 will be using the mouse keys as two of its buttons.

Thanks.. when I get a chance I will do this and report back.

This is how I have mine set up. 

A great program to help with other emulators, if you use them, that do not allow for mouse inputs is Xmouse - http://www.highrez.co.uk/downloads/XMouseButtonControl.htm which will let you map your mouse buttons to keyboard keys on a per application basis.

phishpac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 138
  • Last login:October 15, 2009, 10:42:19 am
    • grateful arcade
Re: Using the same buttons for mouse and player 2?
« Reply #6 on: May 05, 2008, 11:59:49 am »
Sounds like my setup might be different from yours, but I have the Happ 3" ball that has 3 buttons wired as mouse buttons.
I put those buttons as the bottom row of player 1, then just reconfigured the MAME defaults.

For example, in a game like Street Fighter that uses all the buttons
1 2 3  are regular MAME/IPAC defaults
4 5 6 are mouse 1, 2 and 3 remapped in MAME as 4, 5 and 6.


OK, I've finally gotten around to doing this, but when I hit tab in a game and go to player 1 controls, then try and make button 1 and button 2 the mouse buttons, it doesn't recognize that I'm hitting anything.

Do I need to do this in a .cfg instead?  Could you explain how you remapped the buttons?

Thanks

Ginsu Victim

  • Yeah, owning a MAME cab only leads to owning real ones. MAME just isn't good enough. It's a gateway drug.
  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10092
  • Last login:June 28, 2025, 10:45:55 pm
  • Comanche, OK -- USA
Re: Using the same buttons for mouse and player 2?
« Reply #7 on: May 05, 2008, 12:04:31 pm »
I wound up just making a project box that had three buttons on it. The front of my control panel has a flip-up door, and I attached it inside just above my coin door to the right. I just flip the panel up and reach under for mouse buttons, and use player 2's stick as the mouse (U360).
Works great and keeps mouse buttons off my main panel.

CrazyKongFan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 569
  • Last login:June 06, 2017, 01:22:29 pm
Re: Using the same buttons for mouse and player 2?
« Reply #8 on: May 05, 2008, 02:29:58 pm »
You may need to tell MAME to use the mouse. I don't know about regular MAME, but I know MAME32/MAMEUI has a selection for it. I use that when I play Tron, using the mouse as a spinner and the buttons on the mouse as the fire button (doesn't work as good, but I can still get over 100K)

phishpac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 138
  • Last login:October 15, 2009, 10:42:19 am
    • grateful arcade
Re: Using the same buttons for mouse and player 2?
« Reply #9 on: May 05, 2008, 09:16:55 pm »
OK, I went into a game (mk3) and got everything set up EXACTLY the way I wanted it under the default controls.  It worked perfectly, mouse buttons and all.  I leave mk3, go back to mala, then enter metal slug, and all the controls are totally whacked out again!  I am going insane  :timebomb:
« Last Edit: May 05, 2008, 09:49:19 pm by phishpac »

severdhed

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2975
  • Last login:December 14, 2024, 05:01:52 pm
  • RIP Dinosaur Hippo
Re: Using the same buttons for mouse and player 2?
« Reply #10 on: May 05, 2008, 10:30:30 pm »
when you configured the controls in MK3, did you do it under "this game" or "general"?

also, make sure you don't have a custom ini file for that game that specifically disables the mouse.  i had that problem a while back, i had a few games where i had to disable the triple buffer option, so i had a custom .ini file for those roms, however, i made those before i enabled mouse support in mame, so mouse was set to 0 in those ini files....just something to think about.
Current Projects:      Zak-Man | TMNT Pedestal | SNES Pi | N64 Odroid
Former Projects:     4 Player Showcase | Donkey Kong | iCade

phishpac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 138
  • Last login:October 15, 2009, 10:42:19 am
    • grateful arcade
Re: Using the same buttons for mouse and player 2?
« Reply #11 on: May 06, 2008, 07:37:05 pm »
I am making the changes under "general"

is there something particular that I need to be doing to make sure it's saving?

paigeoliver

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10994
  • Last login:July 06, 2024, 08:43:49 pm
  • Awesome face!
Re: Using the same buttons for mouse and player 2?
« Reply #12 on: May 07, 2008, 03:13:17 pm »
Yeah, right click the mame directory and uncheck read only and have it make the changes on everything.

I am making the changes under "general"

is there something particular that I need to be doing to make sure it's saving?
Acceptance of Zen philosophy is marred slightly by the nagging thought that if all things are interconnected, then all things must be in some way involved with Pauly Shore.

fjl

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1152
  • Last login:March 04, 2017, 10:14:04 pm
  • Pixels Rule!
Re: Using the same buttons for mouse and player 2?
« Reply #13 on: May 07, 2008, 04:30:18 pm »
I'm not sure I'm understanding this thread here but you're trying to say that you want to make the trackballs mouse buttons as Player 2's buttons, yes?


If thats correct then you can simply wire up the buttons to the trackball only. Then set mame to use those trackball mouse buttons as the default player 2's buttons.

The result will be that under mame those buttons will funtion as Player 2 buttons only and out of mame, they will function as regular Windows mouse buttons.

Is that what you are trying to do or am I totally off here? ???

ahofle

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4544
  • Last login:August 30, 2023, 05:10:22 pm
    • Arcade Ambience Project
Re: Using the same buttons for mouse and player 2?
« Reply #14 on: May 07, 2008, 04:46:58 pm »
I am making the changes under "general"

is there something particular that I need to be doing to make sure it's saving?

My guess is that you only enabled 'mouse' for MK3.  It needs to be enabled for all games in mame.ini.

phishpac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 138
  • Last login:October 15, 2009, 10:42:19 am
    • grateful arcade
Re: Using the same buttons for mouse and player 2?
« Reply #15 on: May 08, 2008, 08:32:03 pm »
I'm not sure I'm understanding this thread here but you're trying to say that you want to make the trackballs mouse buttons as Player 2's buttons, yes?


If thats correct then you can simply wire up the buttons to the trackball only. Then set mame to use those trackball mouse buttons as the default player 2's buttons.

The result will be that under mame those buttons will funtion as Player 2 buttons only and out of mame, they will function as regular Windows mouse buttons.

Is that what you are trying to do or am I totally off here? ???

that is exactly what i'm trying to do.  i am able to get it to work after making changes in game, but when i go to another game, the controls reset.

phishpac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 138
  • Last login:October 15, 2009, 10:42:19 am
    • grateful arcade
Re: Using the same buttons for mouse and player 2?
« Reply #16 on: May 09, 2008, 10:40:08 am »
Yeah, right click the mame directory and uncheck read only and have it make the changes on everything.

I am making the changes under "general"

is there something particular that I need to be doing to make sure it's saving?

I did this, but still the controls were not correct.  I am using fastmame and mala.  Is there something I can be doing to execute a saved .cfg each time I start a game?  The default.cfg is not saving the way I want it to. :timebomb:

fjl

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1152
  • Last login:March 04, 2017, 10:14:04 pm
  • Pixels Rule!
Re: Using the same buttons for mouse and player 2?
« Reply #17 on: May 09, 2008, 04:42:53 pm »
I'm not sure I'm understanding this thread here but you're trying to say that you want to make the trackballs mouse buttons as Player 2's buttons, yes?


If thats correct then you can simply wire up the buttons to the trackball only. Then set mame to use those trackball mouse buttons as the default player 2's buttons.

The result will be that under mame those buttons will funtion as Player 2 buttons only and out of mame, they will function as regular Windows mouse buttons.

Is that what you are trying to do or am I totally off here? ???

that is exactly what i'm trying to do.  i am able to get it to work after making changes in game, but when i go to another game, the controls reset.

So basically they go back to their default configuration when you change to another game then go back to the first game? It shouldn't do that unless any files in your CFG folder are set to Read Only. But be sure to completely exit MAME before changing any attributes on the CFG files.

And if it still doesn't work, then maybe its that version of mame that has a problem. I'd try a different version.