GlovePIE:MAME/MAME32 - Classic Controller

From WiiLi

Jump to: navigation, search

The following is an algorithm for The Classic Controller written for GlovePIE. The control is mapped for MAME and Play great with Neo-Geo titles as well as others arcade games. But, I would remind that I had also made Scripts for specific titles such as Mortal Kombat or Smash TV, for enhanced buttons mapping.

[edit] Analog stick

The Left Analog stick is mapped on the Analog stick of the virtual Joystick 1. You need to install PPJoy before using the Analog stick.

The package could be found here:

http://www.geocities.com/deonvdw/PPJoy.htm

or

Download the package directly here (mirror)

[edit] GlovePIE Script

/*******************************************************************/
// This code MUST be use with a classic controller and MAME*
// Tested on MAME32
// Created by Marc-Andre Larouche
// marclar83@gmail.com
// Version 0.2
// tested on GlovePIE 0.29
// September 2007
//
// Play great with:
// Neo-Geo titles
// Double dragon (technos),
// Simpsons: The Arcade Game,
// Teenage Mutant ninja turtles: Turtles in time
// and many others...

// Emulator keys
   Key.one = Wiimote.Classic.Plus;
   Key.Five = Wiimote.Classic.Minus;
   Key.F10 = Wiimote.Classic.Home;
// Pause
   Key.P = Wiimote.Classic.ZL;
   Key.P = Wiimote.Classic.ZR;

// btn 5/6 (useful with Ikari Warriors)
   Key.Z = Wiimote.Classic.L;
   Key.X = Wiimote.Classic.R;

// Buttons mapping
   Key.LeftControl = Wiimote.Classic.y;
   Key.LeftAlt = Wiimote.Classic.b;
   Key.Space = Wiimote.Classic.a;
   Key.LeftShift = Wiimote.Classic.x;

// DPAD
   Key.Down = Wiimote.Classic.Down;
   Key.Up = Wiimote.Classic.Up;
   Key.Left = Wiimote.Classic.Left;
   Key.Right = Wiimote.Classic.Right;

// Analog joystick, require PPJoy and a configured virtual joystick
// More details :  http://www.geocities.com/deonvdw/PPJoy.htm
PPJoy1.Analog0 = MapRange(Wiimote.Classic.Joy1X,0,1,0,1);
PPJoy1.Analog1 = MapRange(Wiimote.Classic.Joy1Y,0,1,0,1);

// If you don't want to use PPJoy, use this instead
/*
Key.left = Wiimote1.Classic.Joy1X <= -25%
Key.right = Wiimote1.Classic.Joy1X >= 25%
Key.up = Wiimote1.Classic.Joy1Y <= -25%
Key.down = Wiimote1.Classic.Joy1Y >= 25%
*/

Personal tools
Online Casino - best online casino reviews.
Facebook Developers - facebook applications, facebook developers, facebook development, social network application development and viral widget social media strategy