JoyType ([port])

Blitz3D Forums/Blitz3D Beginners Area/JoyType ([port])

Well I believe that the USB spec allows (theoretically) 127 devices per port. Multiply that by the number of USB controllers on the motherboard and in any add-in cards. And then you have to add possibilities for gameport devices, bluetooth devices, firewire devices (do they exist?) and any other that come out.

So to answer your question, there's really no specific "maximum". You're better off supporting "up to" 1000 joysticks or something, and just doing what vip3r said.

Actually, if you really wanted to enumerate all the joysticks connected, there MAY be a function available in the WinAPI, but I don't know what it is.