Microsoft seems to recommend using
WM_INPUT for input. I want to only get relative mouse input and hide the mouse cursor all together for a short while (For gesture based input). However, using
RIDEV_CAPTUREMOUSE|RIDEV_NOLEGACY while registering the input device only prevents the mouse clicks to other windows, but the mouse cursor is still visible and not constrained to my window. How can I hide it and make it reappear exactly where I left off when my input capture began after the short while?
I know this has been asked before in the context of FPS controls, but it always seemed to be in a different context, mostly with APIs that already implement a mouse grab like this.
It was also mentioned that you could hide the cursor and reset it to its window's center after every move. However,
DirectInput let you grab the mouse cursor exclusively. So since that was deprecated in favor of
WM_INPUT, is the "old way" without
DX the way to go again, or is there something new that works well with