Hi all.
I have spent the last few days playing with the winMM Joystick library
and have come across a fairly major problem with joySetCapture().
When I call this for the first time it works correctly and I get the
notifications until I call joyReleaseCapture().
If I then start capturing it again, it fails with error code 6
(MMSYSERR_NODRIVER) until I restart the process.
While it has "broken", other process can capture it fine (once).
The code in question that starts it is:
If joySetCapture(CaptureForm.hWnd, IntIndex, 100, -1) = 0 Then
The interval and changed parameters don't have any effect on the result.
I have confirmed this on Windows XP (SP2 and SP3), and Vista (SP1).
Windows 2K (SP4) works as expected.
This post is more to inform other people as I have now moved over to
using DirectInput, but if anyone has any ideas or suggestions, I'll
happily test them.
--
Dean Earley (dean.earley@
icode.co.uk)
i-Catcher Development Team