02-18-2011, 12:09 AM
Hi all, im trying to get my wimote as steering wheel for Grid (car game)
iv managed to make the picth go left and right on say a notpad but not in the game. That is when i steer left the curser goes left, that works, but not in the game..? any ideas?!!
here the code
if wiimote.Pitch > 20 degrees
Key.Right = True
wait var.HoldKey
Release(Right)
endif
if wiimote.Pitch < -20 degrees
Key.Left = True
wait var.HoldKey
Release(Left)
endif
If i take away the
wait var.HoldKey
Release(Right)
The steering kinda gets stuck
cheers!
iv managed to make the picth go left and right on say a notpad but not in the game. That is when i steer left the curser goes left, that works, but not in the game..? any ideas?!!
here the code
if wiimote.Pitch > 20 degrees
Key.Right = True
wait var.HoldKey
Release(Right)
endif
if wiimote.Pitch < -20 degrees
Key.Left = True
wait var.HoldKey
Release(Left)
endif
If i take away the
wait var.HoldKey
Release(Right)
The steering kinda gets stuck
cheers!