As I want to check up to about 8 joysticks I need a function telling me how many are connected to the PC or a function which returns if a joystick with the specific number is connected and can be examined. ExamineJoystick just notifies the debugger as if it is a fatal error to check a non-existing joystick. Without debugger it works.
Fred, maybe you shouldn't do that.
leave the check but add a wrapper called GetJoysticks() or something.
That way the InitJoystick() will keep behaving like all other Init functions. (can only be called once)