Possible to "grab" mouse w/ raw input API?

Started by
1 comment, last by Carnevil_ 16 years ago
Is it possible to "grab" the mouse (meaning making the cursor disappear, and preventing it from actually moving) using the raw input API? I've tried using the RIDEV_CAPTUREMOUSE flag when defining my raw input device, but it doesn't seem to work (in fact, it makes it so that I don't receive ANY WM_INPUT messages). I'm looking to essentially recreate what happens with DirectInput when creating a mouse device with the exclusive and foreground flags. Is this possible?
Advertisement
Just use ShowCursor to make the cursor disappear, and then use SetCursorPos or ClipCursor to keep it within your window.
That did the trick! Thanks :)

This topic is closed to new replies.

Advertisement