today I want to ask a question about how to get mouse movement value with DirectX Tool Kit.
While I can certainly use
Mouse::SetMode(MODE_RELATIVE), to do this, I want to be able to get the mouse cursor position at the same time (which can only be done with
The method I thought of involves leaving mouse mode as the default
MODE_ABSOLUTE, and then subtract the mouse position from the previous frame from that of the current one.
But with this method, the mouse cursor can jump out of the window.
So I thought of restricting the mouse cursor to a certain point, but this obviously prevents me from calculating the movement value with said method.
Does anyone have some ideas on how to achieve this with DirectX Tool Kit ?
Or am I missing some obvious thing ?
Thanks in advance!