GlovePIE:LEGO Indiana Jones

From WiiLi

Jump to: navigation, search

1 Player only at the moment. Feel free to add controls for the second player.

/********************************************************************
* Writen by Structed
* Version 0.2
* tested on GlovePIE 0.3
* August 2008
* License: Do anything you want ;-)
*
* Changelog:
*
* 0.2: Added Player 1 LED, added free play char switch buttons (L, R) 
********************************************************************/

// DPAD
Key.W = Wiimote1.Classic.Up
Key.S = Wiimote1.Classic.Down
Key.A = Wiimote1.Classic.Left
Key.D = Wiimote1.Classic.Right
//----------------------------//

// Analog Stick:
Key.W = Wiimote1.Classic.Joy1Y <= -25%   // up
Key.S = Wiimote1.Classic.Joy1Y >= 25%   // down
Key.A = Wiimote1.Classic.Joy1X <= -25%    // left
Key.D = Wiimote1.Classic.Joy1X >= 25% // right

Key.left = Wiimote1.Classic.Joy1X <= -25%
Key.right = Wiimote1.Classic.Joy1X >= 25%
Key.up = Wiimote1.Classic.Joy1Y <= -25%
Key.down = Wiimote1.Classic.Joy1Y >= 25%
//----------------------------//


// Buttons
Key.K = Wiimote1.Classic.x      // Change character
Key.J = Wiimote1.Classic.a      // Special
Key.U = Wiimote1.Classic.b      // Jump
Key.H = Wiimote1.Classic.y      // Action
Key.LeftControl = Wiimote1.Classic.L     // change char (down)
Key.Space = Wiimote1.Classic.R           // change char (up)

Key.Enter = Wiimote1.Classic.Plus        // Start/Pause
Key.Enter = Wiimote1.Classic.Minus        // Start/Pause
Wiimote1.Led1  = 1                       // enable LED 1 (to indicate Player 1)

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