Getjoystick doesn't work when you hotplug a joystick. That's something most modern games support.
Getjoystick is in the gfxlib, right? I guess it enumerates the joysticks on initialization.
Is there a way to force it to re-initialize when a new joystick is detected?