WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

N64 Controller, simple

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts
View previous topic :: View next topic  
Author Message
zitcon



Joined: 20 Jun 2008
Posts: 4
Location: norway

Digg It
PostPosted: 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 : )
_________________
: )
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group