GlovePIE:MAME/MAME32 - MK 1, 2 or 3 (Classic Controller)
From WiiLi
The following is an algorithm for The Classic Controller written for GlovePIE. The control is mapped for Mortal Kombat 1, 2 or 3 on M.A.M.E.
[edit] Controls
Classic controller DPAD/Thumbstick: Character displacement.
Classic controller "Y": HIGH PUNCH.
Classic controller "X": HIGH KICK.
Classic controller "B": LOW PUNCH.
Classic controller "A": LOW KICK.
Classic controller "Minus": P1 Coin.
Classic controller "Home": Throttle.
Classic controller "Plus": P1 Start.
Classic controller "Right Trigger": BLOCK.
Classic controller "Left Trigger*": RUN (MK 3).
Classic controller "ZL" or "ZR": Pause Emulator.
[edit] GlovePIE Script
/*******************************************************************/ // This code must be use with Mortal Kombat 1,2 or 3 (on MAME*) // For 1 or 2 classic controllers // Tested on MAME32 // Created by Marc-Andre Larouche // marclar83@gmail.com // The Classic controller is mandatory // Version 0.2 // tested on GlovePIE 0.29 // September 2007 /********************************************************************/ // READ THIS // ************************ Important *************************** // // By default the second player input didn't include a button 5 or 6. // In order to correct this problem, please remap // the Player 2 following keys. // (you can use this script with the wiimote to do that) // // A: BackSpace | L: BackSlash // LED P1 Wiimote1.LED1 = true; Wiimote1.LED2 = false; Wiimote1.LED3 = false; Wiimote1.LED4 = false; // LED P2 Wiimote2.LED1 = false; Wiimote2.LED2 = true; Wiimote2.LED3 = false; Wiimote2.LED4 = false; // P1 Analog sticks // The following script mapped the Classic analog stick to the character' displacement Key.left = Wiimote1.Classic.Joy1X <= -40% Key.right = Wiimote1.Classic.Joy1X >= 40% Key.up = Wiimote1.Classic.Joy1Y <= -40% Key.down = Wiimote1.Classic.Joy1Y >= 40% Key.Right = Wiimote.Classic.Right; Key.Up = Wiimote.Classic.Up; Key.Down = Wiimote.Classic.Down; Key.Left = Wiimote.Classic.Left; Key.one = Wiimote.Classic.Plus; Key.Five = Wiimote.Classic.Minus; Key.F10 = Wiimote.Classic.Home; Key.P = Wiimote.Classic.ZL; Key.P = Wiimote.Classic.ZR; Key.LeftControl = Wiimote.Classic.x; Key.LeftAlt = Wiimote.Classic.y; Key.Space = Wiimote.Classic.R; Key.LeftShift = Wiimote.Classic.b; Key.Z = Wiimote.Classic.a; Key.X = Wiimote.Classic.L; // P2 Analog sticks Key.D = Wiimote2.Classic.Joy1X <= -40% Key.G = Wiimote2.Classic.Joy1X >= 40% Key.R = Wiimote2.Classic.Joy1Y <= -40% Key.F = Wiimote2.Classic.Joy1Y >= 40% Key.G = Wiimote2.Classic.Right; Key.R = Wiimote2.Classic.Up; Key.F = Wiimote2.Classic.Down; Key.D = Wiimote2.Classic.Left; Key.two = Wiimote2.Classic.Plus; Key.six = Wiimote2.Classic.Minus; Key.F10 = Wiimote2.Classic.Home; Key.P = Wiimote2.Classic.ZL; Key.P = Wiimote2.Classic.ZR; Key.A = Wiimote2.Classic.x; Key.S = Wiimote2.Classic.y; Key.Q = Wiimote2.Classic.R; Key.W = Wiimote2.Classic.b; // Theses Key must be configed manually // since the default configuration didn't include btn 5,6 Key.BackSpace = Wiimote2.Classic.a; Key.BackSlash = Wiimote2.Classic.L;

