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

 A7.6  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, joy2_raw, joy_rot , joy2_rot, joy_1 .. joy_10, joy2_1 .. joy2_10, num_joysticks