Possible to "grab" mouse w/ raw input API?
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?
Just use ShowCursor to make the cursor disappear, and then use SetCursorPos or ClipCursor to keep it within your window.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement