joy_force
Scaled position of the joystick
or a 3D navigation device in vertical
and horizontal direction. The startup
position is zero.
Range:
-2.0 ... +2.0
Type:
VECTOR*, read-only
Remarks
-
The _force vectors (joy_force, key_force, mouse_force) have a limited range and a large 'dead zone', and are mostly used for keyboard-like movement. For the full analog joystick range, use joy_raw.
- If no joystick is found,
but a 3D navigation device by 3Dconnexion is
detected, the engine gives the startup message "3D
navigation device found" and
binds it in as a joystick device. In this case joy_force.x is controlled
by rolling or spinning the device, and joy_force.y by tilting. Development
tools and related technology are provided under license from 3Dconnexion. © 1992
- 2002 3Dconnexion. All rights reserved.
Example:
function ent_rotate()
{
while(1)
{
my.pan += joy_force.x * time_step; // horizontal joystick movement changes PAN
my.tilt += joy_force.y * time_step; // vertical joystick movement changes TILT
wait(1);
}
}
See Also:
joy_raw, joy_rot, joy_1 .. joy_10, num_joysticks,
key_force, mouse_force
► latest
version online