key_force

The smoothed force applied by pressing the cursor keys.

Range:

-1 .. +1 resp. -2 .. +2

Type:

VECTOR*, read-only

Remarks:

When pressing the [Shift] key, the force is multiplied by shift_sense.

Example:

action key_entrot()
{	
  shift_sense = 2; //[SHIFT] doubles key_force
 	while(1)
 	{
 	  my.pan += key_force.x * time_step;	// key up rotates PAN
 	  my.tilt += key_force.y * time_step;
 	  wait(1);
 	}	
}	

See also:

key_..., on_anykey, shift_sense, key_any, key_lastpressed, joy_force, mouse_force

► latest version online