Build Your Own Arcade Controls Forum

Main => Main Forum => Topic started by: phishpac on April 27, 2008, 03:13:23 pm

Title: Using the same buttons for mouse and player 2?
Post by: phishpac 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
Title: Re: Using the same buttons for mouse and player 2?
Post by: severdhed 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.
Title: Re: Using the same buttons for mouse and player 2?
Post by: TOK 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.
Title: Re: Using the same buttons for mouse and player 2?
Post by: protokatie 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.
Title: Re: Using the same buttons for mouse and player 2?
Post by: phishpac 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.
Title: Re: Using the same buttons for mouse and player 2?
Post by: massive88 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.
Title: Re: Using the same buttons for mouse and player 2?
Post by: phishpac 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
Title: Re: Using the same buttons for mouse and player 2?
Post by: Ginsu Victim 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.
Title: Re: Using the same buttons for mouse and player 2?
Post by: CrazyKongFan 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)
Title: Re: Using the same buttons for mouse and player 2?
Post by: phishpac 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:
Title: Re: Using the same buttons for mouse and player 2?
Post by: severdhed 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.
Title: Re: Using the same buttons for mouse and player 2?
Post by: phishpac 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?
Title: Re: Using the same buttons for mouse and player 2?
Post by: paigeoliver 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?
Title: Re: Using the same buttons for mouse and player 2?
Post by: fjl 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? ???
Title: Re: Using the same buttons for mouse and player 2?
Post by: ahofle 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.
Title: Re: Using the same buttons for mouse and player 2?
Post by: phishpac 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.
Title: Re: Using the same buttons for mouse and player 2?
Post by: phishpac 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:
Title: Re: Using the same buttons for mouse and player 2?
Post by: fjl 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.