Name
CountJoysticks -- return number of joysticks currently plugged in (V4.6)
Synopsis
r = CountJoysticks()
Function
This function counts the number of joysticks currently plugged in. You can then query the single joysticks using the JoyDir() and JoyFire() commands. This function is useful to check if there is a joystick available at all. If it returns 0, then there is currently no joystick that is recognized by Hollywood.

Inputs
none

Results
r
number of joysticks available or 0 if none

Show TOC