uses SDL;
function SDL_NumJoysticks : Integer;
Counts the number of joysticks attached to the system.
Returns the number of attached joysticks
SDL_JoystickName , SDL_JoystickOpen