mouse_force

Vector proportional to the speed with which the mouse is currently being moved in vertical and horizontal direction, normally used for controlling the camera or a player.

Range:

-2 ... +2

Type:

VECTOR*, read-only

Example:

action turret_rotate()
{	
  while(1)
 	{
 	  my.pan += mouse_force.x;	// mouse movement changes PAN 
 	  my.tilt += mouse_force.y;	// mouse movement changes TILT
 	  wait(1);
 	}
}	 

See also:

mouse_mode, mouse_pos, mickey, mouse_range, mouse_moving, mouse_calm, mouse_time, mouse_left, joy_force, key_force

► latest version online