Here is a short list of some Glovepie codes I have written, feel free to copy them, paste them into Glovepie, and use or fiddle with them 'til your hearts content.
//All this does is map your Xbox controller to your keyboard. You can replace the keyboard values to be anything you want.
//A, B, X, and Y
keyboard.A = Joystick.Button1
keyboard.B = Joystick.Button4
keyboard.C = Joystick.Button3
keyboard.D = Joystick.Button2
//R and L buttons
keyboard.E = Joystick.z > .5
keyboard.F = Joystick.Button5
keyboard.G = Joystick.z < -.5
keyboard.H = Joystick.Button6
//Left Analog Stick
keyboard.I = Joystick.y < -.5
keyboard.J = Joystick.y > .5
keyboard.K = Joystick.x < -.5
keyboard.L = Joystick.x > .5
//Right Analog Stick
keyboard.M = Joystick.xrot < -.5 //left-xbox
keyboard.N = Joystick.xrot > .5 //right-xbox
keyboard.O = Joystick.yrot < -.5 //up-xbox
keyboard.P = Joystick.yrot > .5 //down-xbox
//POV hat - the dpad
keyboard.Q = Joystick.POV1Up
keyboard.R = Joystick.POV1Right
keyboard.S = Joystick.POV1Left
keyboard.T = Joystick.POV1Down
//Start and Select
keyboard.enter = Joystick.Button8 //Start
keyboard.space = Joystick.Button7 //select
//Circle, Triange, X, and Square
keyboard.End = Joystick.Button1 //x psp
keyboard.Home = Joystick.Button4 //triange psp
keyboard.Delete = Joystick.Button3 //square psp
keyboard.PageDown = Joystick.Button2 //circle psp
//R and L buttons
keyboard.Q = Joystick.z > .5
keyboard.Q = Joystick.Button5
keyboard.PageUp = Joystick.z < -.5
keyboard.PageUp = Joystick.Button6
//Left Analog Stick
keyboard.Up = Joystick.y < -.5
keyboard.Down = Joystick.y > .5
keyboard.Left = Joystick.x < -.5
keyboard.Right = Joystick.x > .5
//Right Analog Stick - here I am mapping the right analog stick to be x, ▲, O,
and □.
keyboard.Delete = Joystick.xrot < -.5 //left-xbox
keyboard.PageDown = Joystick.xrot > .5 //right-xbox
keyboard.Home = Joystick.yrot < -.5 //up-xbox
keyboard.End = Joystick.yrot > .5 //down-xbox
//I did the chunk of code above for Siphon
Filter, where the x, ▲, O, and □
buttons control where you look, this effectively makes the game controllable via
2 joystick, just like a standard FPS. If you don't want to do this, take this
chunk out.
//POV hat
keyboard.W = Joystick.POV1Up
keyboard.S = Joystick.POV1Right
keyboard.A = Joystick.POV1Left
keyboard.Z = Joystick.POV1Down
//Start and Select
keyboard.Enter = Joystick.Button8 //Start
keyboard.RightShift = Joystick.Button7 //select
//Generic Joystick Driver
//by Lawngahnome
//
//
//To run this, download PPJoy (just google it), and create a PPJoy Virtual
Joystick
//Number the axes Analog0 and Analog1 and the buttons Digital0 through Digital10
//
//In your game go into the control setup and map the keys to whatever you'd
like.
PPJoy.Digital0 = wiimote.B
PPJoy.Digital1 = wiimote.A
PPJoy.Digital2 = wiimote.Left
PPJoy.Digital3 = wiimote.Right
PPJoy.Digital4 = Wiimote.Up
PPJoy.Digital5 = Wiimote.Down
PPJoy.Digital6 = Wiimote.Minus
PPJoy.Digital7 = Wiimote.Plus
PPJoy.Digital8 = Wiimote.Home
PPJoy.Digital9 = wiimote.One
PPJoy.Digital10 = wiimote.Two
PPJoy.Analog0 = -(wiimote.RawForceX + 6) / 20
PPJoy.Analog1 = (wiimote.RawForceY - 3) / -15
//this is a very primatice script, but it makes a
good demo of glovepies
//capabilities. To best use this program, set the Wiimote on it's base, pointing
//straight up into the air with the buttons pointing toward you.
//Move the Wiimote like it is a joystick
mouse.button1 = wiimote.A
mouse.button2 = wiimote.B
mouse.DirectInputX = mouse.DirectInputX + 60*deadzone(-wiimote.gx)
mouse.DirectInputY = mouse.DirectInputY + 60*deadzone(wiimote.gy)