num_joysticks
gives the number of joysticks connected (0,1, or 2).Range:
0, 1, 2Type:
var, read-onlyExample:
function maus_entkill()
{
if(num_joysticks > 0) // Joystick found
{
my.pan += joy_force.x * time_step;
my.tilt += joy_force.y * time_step;
}
}
See also:
joy_raw, joy2_raw, joy_rot , joy2_rot, joy_force, joy_1 .. joy_10, joy2_1 .. joy2_10
► latest
version online