zitcon
Joined: 20 Jun 2008 Posts: 4 Location: norway
Digg It |
Posted: Sun Jun 22, 2008 10:35 pm Post subject: N64 Controller, simple |
|
|
Hi
There are a lot of scripts for different games , but I have not seen anyone that is meant for all N64 games .
Soo , I decided to make a script my own .
It's no fancy hand shaking, just using buttons .
It should not be to hard to configure yourself
Search on some simple PPjoy tutorials for making it work, or simply remove the Comments surrounding left, right, up, down (/* and */)
Here it is :
| Code: |
// Simple N64 Controller made by lsr
// Feel free to mod, fix and rewrite the script for own needs
//
// Needs Nunchuck ..
//
// A = A
// B = B
// C = 1,2,3,4
// Start = S
// Left = Minus
// Right = Plus
// Z = Nunchuck Z
//
// I use to add some simple configs ,so the controller suits the game better
//
// Debug
Debug = Wiimote.Battery+"%"
// Left , Right, Up and Down buttons
/*
var.Joysticksense = 0.25
Right = Wiimote.Nunchuk.JoyX > var.Joysticksense
Left = Wiimote.Nunchuk.JoyX < -var.Joysticksense
Down = Wiimote.Nunchuk.JoyY > var.Joysticksense
Up = Wiimote.Nunchuk.JoyY < -var.Joysticksense
*/
PPjoy.Analog0 = Wiimote.Nunchuk.JoyX
PPjoy.Analog1 = Wiimote.Nunchuk.JoyY
// A and B buttons
A = Wiimote.A
B = Wiimote.B
// Start
S = Wiimote.One
// L , R and Z buttons
L = Wiimote.Minus
R = Wiimote.Plus
Z = Wiimote.Nunchuk.ZButton
// C buttons
key.One = Wiimote.Left
key.Two = Wiimote.Right
key.Three = Wiimote.Up
key.Four = Wiimote.Down
// Just a led so you know its working
Wiimote.Led1 = true
|
Most of you can write better in no time, but for a newb who wants to learn, this is a start : ) _________________ : ) |
|