num_joysticks

Anzahl der angeschlossenen Joysticks (0,1 oder 2).

Wertebereich:

0, 1, 2

Typ:

var, read-only

Beispiel:

function maus_entkill()
{	
  if(num_joysticks > 0) // Joystick found
 	{
 	  my.pan += joy_force.x * time_step;
 	  my.tilt += joy_force.y * time_step;
 	}	
}	 

Siehe auch:

joy_raw, joy2_raw, joy_rot , joy2_rot, joy_force, joy_1 .. joy_10, joy2_1 .. joy2_10

► Aktuelle Version Online