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

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