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 

simple script direct input =roll and pitch or pointer or pad

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



Joined: 19 Mar 2008
Posts: 66

Digg It
PostPosted: Sun May 11, 2008 5:16 pm    Post subject: simple script direct input =roll and pitch or pointer or pad

this script roll and pitch
can be use in battlefield 2 for control aircraft and helicopter, but also all games who uses direct input.

Code:
wiimote roll and pitch :

mouse.DirectInputX = mouse.DirectInputX + 50*deadzone(PPJoy1.Analog0)
mouse.DirectInputY = mouse.DirectInputY + 50*deadzone(PPJoy1.Analog1)
PPJoy1.Analog0 = Wiimote1.Roll/30
PPJoy1.Analog1 = -Wiimote1.Pitch/20

Code:
wiimote pointer :

mouse.DirectInputX = mouse.DirectInputX + 20*deadzone(PPJoy1.Analog6)
mouse.DirectInputY = mouse.DirectInputY + 20*deadzone(PPJoy1.Analog5)
PPJoy.Analog6 = (Wiimote1.pointerX - 1/2)*2
PPJoy.Analog5 =(Wiimote1.pointerY - 1/2)*2

Code:
special wiimote pad:

mouse.DirectInput = mouse.DirectInput + wiimote.DPad *10
Back to top
View user's profile Send private message Visit poster's website 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