jeromote

Joined: 19 Mar 2008 Posts: 66
Digg It |
Posted: 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 |
|
|