Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: Trimoor on August 23, 2004, 04:15:38 pm

Title: Mapping Mouse in Joystick Game
Post by: Trimoor on August 23, 2004, 04:15:38 pm
I love the game "Puzzle Bobble"/"Bust-A-Move".
The only problem is, it's a joystick game, when it really should (in my opinion) be a spinner game.

Using the MAME configs, how do I use a mouse spinner to move left/right?

Here is my Puzzle Bobble config:

<mameconfig version="10">
   <system name="pbobblen">

      <input>
         <port type="P1_JOYSTICK_UP" mask="1" defvalue="1" value="1">
         </port>
         <port type="P1_JOYSTICK_DOWN" mask="2" defvalue="2" value="2">
         </port>
         <port type="P1_JOYSTICK_LEFT" mask="4" defvalue="4" value="4">
            <newseq type="standard">KEYCODE_LEFT</newseq>
         </port>
         <port type="P1_JOYSTICK_RIGHT" mask="8" defvalue="8" value="8">
         </port>
         <port type="P1_BUTTON1" mask="16" defvalue="16" value="16">
         </port>
         <port type="P1_BUTTON2" mask="32" defvalue="32" value="32">
         </port>
         <port type="P1_BUTTON3" mask="64" defvalue="64" value="64">
         </port>
         <port type="P1_BUTTON4" mask="128" defvalue="128" value="128">
         </port>
         <port type="P2_JOYSTICK_UP" mask="1" defvalue="1" value="1">
         </port>
         <port type="P2_JOYSTICK_DOWN" mask="2" defvalue="2" value="2">
         </port>
         <port type="P2_JOYSTICK_LEFT" mask="4" defvalue="4" value="4">
         </port>
         <port type="P2_JOYSTICK_RIGHT" mask="8" defvalue="8" value="8">
         </port>
         <port type="P2_BUTTON1" mask="16" defvalue="16" value="16">
         </port>
         <port type="P2_BUTTON2" mask="32" defvalue="32" value="32">
         </port>
         <port type="P2_BUTTON3" mask="64" defvalue="64" value="64">
         </port>
         <port type="P2_BUTTON4" mask="128" defvalue="128" value="128">
         </port>
         <port type="START1" mask="1" defvalue="1" value="1">
         </port>
         <port type="OTHER" mask="2" defvalue="2" value="2">
            <defseq type="standard">KEYCODE_7</defseq>
         </port>
         <port type="START2" mask="4" defvalue="4" value="4">
         </port>
         <port type="OTHER" mask="8" defvalue="8" value="8">
            <defseq type="standard">KEYCODE_8</defseq>
         </port>
         <port type="DIPSWITCH_NAME" mask="1" defvalue="1" value="1">
         </port>
         <port type="DIPSWITCH_NAME" mask="2" defvalue="2" value="2">
         </port>
         <port type="DIPSWITCH_NAME" mask="4" defvalue="4" value="4">
         </port>
         <port type="DIPSWITCH_NAME" mask="56" defvalue="56" value="56">
         </port>
         <port type="DIPSWITCH_NAME" mask="64" defvalue="64" value="64">
         </port>
         <port type="DIPSWITCH_NAME" mask="128" defvalue="128" value="128">
         </port>
         <port type="COIN1" mask="1" defvalue="1" value="1">
         </port>
         <port type="COIN2" mask="2" defvalue="2" value="2">
         </port>
         <port type="SERVICE1" mask="4" defvalue="4" value="4">
         </port>
         <port type="SPECIAL" mask="32" defvalue="32" value="32">
         </port>
         <port type="SPECIAL" mask="64" defvalue="64" value="64">
         </port>
         <port type="OTHER" mask="128" defvalue="128" value="128">
            <defseq type="standard">KEYCODE_F2</defseq>
         </port>
      </input>

   </system>
</mameconfig>
Title: Re:Mapping Mouse in Joystick Game
Post by: creatine28 on August 23, 2004, 07:20:56 pm
Maybe this will work?

http://www.aldostools.com/vgsmousejoy.html (http://www.aldostools.com/vgsmousejoy.html)
Title: Re:Mapping Mouse in Joystick Game
Post by: Trimoor on August 23, 2004, 09:23:17 pm
That just remaps the mouse buttons, something you can easily do with the mame options gui.

I want to map the mouse axis to left and right in the game.
Title: Re:Mapping Mouse in Joystick Game
Post by: u_rebelscum on August 24, 2004, 01:16:46 am
Mame can't do that by itself.  IOW:

Mame cannot map a relative analog axis (aka mouse axis) to any game digital input.

Read the source (src/input.c) for more info.


There might some non-mame utilities that change mouse movements to key presses.  Otherwise, sorry. :-\