Joystick
Notifications
You can
capture direct joystick messages to be sent to a function by using the joySetCapture
Note A joystick
message can fail to reach the application that captured the joystick if a
second application uses joyGetPos or joyGetPosEx to query the
joystick at approximately the same time that the message is sent. In this case,
the second application could intercept the message.
If you want
to capture messages from two joysticks attached to the system, use joySetCapture
You can
release a captured joystick by using the joyReleaseCapture
You cannot capture
an unplugged joystick. The joySetCapture function returns
JOYERR_UNPLUGGED if the specified device is unplugged.