GlovePIE:MAME/MAME32 - Marble Madness
From WiiLi
The following is an algorithm for the original Marble Madness written for GlovePIE. The control is mapped for M.A.M.E and support Tilting control with a Virtual Joystick.
Contents |
[edit] **IMPORTANT**
You need to install PPJoy before using the script.
The package could be found here:
http://www.geocities.com/deonvdw/PPJoy.htm
or
Download the package directly here (mirror)
[edit] Wiimote Setup
[edit] Wiimote
[edit] Wiimote Tilting
**Hold the Wiimote like an NES controller
Tilt Left: Roll Left
Tilt Right: Roll Right
Tilt Up: Roll Up
Tilt Down: Roll Down
[edit] DPAD
Left: Roll Left
Right: Roll Right
Up: Roll Up
Down: Roll Down
[edit] MAME Default buttons
1: P1 Btn 1 (not used in Marble Madness)
2: P1 Btn 2 (not used in Marble Madness)
[edit] Emulator controls
Minus: P1 Coin
Home: M.A.M.E Throttle
Plus: P1 Start
[edit] GlovePIE Script
/*******************************************************************/ // This code must be use with Marble Madness (on MAME*) // Tested on MAME32 // Created by Marc-Andre Larouche // marclar83@gmail.com // Version 0.11 // tested on GlovePIE 0.29 // September 2007 /********************************************************************/ // READ THIS // ************************ Important *************************** // Enable Joystick input // and Disable Mouse input on M.A.M.E // also // PPJoy must be install and configured to enable // a virtualJoystick as Windows the first controller // // Download here: // http://www.geocities.com/deonvdw/PPJoy.htm // Otherwise the Tilt controls won't work!!! // Sensitivity [0.01 to 1] Var.Sensitivity = 0.66; //DPAD Mapping on Analog controls Key.Up = Wiimote.Right; Key.Down = Wiimote.Left; Key.Left = Wiimote.Up; Key.Right = Wiimote.Down; // Button 1 and 2 for P1 btn 1 and 2 Key.LeftControl = Wiimote.One; Key.LeftAlt = Wiimote.Two; //Emulator Keys // P1 Start Key.one = Wiimote.Plus // P1 Coin Key.Five = Wiimote.Minus // Throttle Key.F10 = Wiimote.Home // Tilt controls using the // Virtual Joystick PPJoy1.Analog0 = MapRange(Wiimote1.gz, 0,1, 0,1)* Var.Sensitivity; PPJoy1.Analog1 = MapRange(Wiimote1.gx, 0,1, 0,1)* Var.Sensitivity;

