NumJoysticks ( )

Returns the number of connected joysticks.

Example: