| View previous topic :: View next topic |
| Author |
Message |
albo21
Joined: 10 Apr 2008 Posts: 8
Digg It |
Posted: Thu Apr 10, 2008 11:23 pm Post subject: Nunchuk And Remote Axis help |
|
|
hi all sorry to be a pain
but could some one tell me the keys for the nunchuk and wii remote.
example
keyboard.D = (Nunchuk.JoyX > 0.5)
keyboard.A = (Nunchuk.JoyX < -0.5)
keyboard.S = (Nunchuk.JoyY > 0.5)
keyboard.W = (Nunchuk.JoyY < -0.5
will move the nunchuk stick but how do i do this for the axis
example tilt nunchuk left for keyboard.a and right for keyboard.d
also the same for wii remote..
thanks in advance please help
i have worked out that keyboard.a = (Wiimote1.Nunchuk.Roll > 0.1)
if i tilt nunchuk right i get a but what about left,down and up.. |
|
| Back to top |
|
 |
SteK
Joined: 12 Mar 2008 Posts: 4
Digg It |
Posted: Sat Apr 12, 2008 6:29 pm Post subject: |
|
|
i'd use an if loop (but dont take my word for it)
e.g.
if nunchuk.joy> 0.5
press (D)
wait x time
release (D)
end if
thes repeat for the other directions and keys
or sumthing of that nature or just use PPjoy that seems the best solution cos the keboard dont get confused with loads of key presses _________________ I thought what i'd do was become one of those deaf mutes, or would I? |
|
| Back to top |
|
 |
|