I need to detect that joystick is unplugged during runtime.
Using C++ Borland builder 5 enterprise edition.

used windows api.
Referred to http://plib.sourceforge.net/js/index.html

Right now joystick once detected, it remains as plugged even though in the midst of the application i unplug the joystick.

Goal: Is to stop processing the joystick code when joystick is unplugged.


Thanks in advance for any help

Maybe ask them the question?

My eyes are bleeding from straining to read yellow text on a green background - puke puke puke.

My guess is one or more sample values jump to one of the sample limits (and pretty much stays there).