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: Mapping Mouse in Joystick Game  (Read 1149 times)

0 Members and 1 Guest are viewing this topic.

Trimoor

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 596
  • Last login:November 18, 2006, 09:01:46 pm
  • I like shooting out of helicopters.
    • Trimoor
Mapping Mouse in Joystick Game
« 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>

creatine28

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 481
  • Last login:July 26, 2012, 03:41:48 pm
  • Which way to the Arcade?
Re:Mapping Mouse in Joystick Game
« Reply #1 on: August 23, 2004, 07:20:56 pm »

Trimoor

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 596
  • Last login:November 18, 2006, 09:01:46 pm
  • I like shooting out of helicopters.
    • Trimoor
Re:Mapping Mouse in Joystick Game
« Reply #2 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.

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:Mapping Mouse in Joystick Game
« Reply #3 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. :-\
Robin
Knowledge is Power