0
\$\begingroup\$

Hello I'm studying game engine programming, but I got stuck with mouse input.

As for now I have only WinAPI window, which has a message pump and processing. For the mouse I used RAWINPUT, but there is a problem: I can't find any elegant way of handling the mouse cursor, for example making a menu in a shooter.

Raw input provides relative movement data directly from mouse driver, but how can I control the cursor with it? Or maybe I should make 2 message processing queues with filters on the mouse? I haven't found any real solutions in my searching yet.

\$\endgroup\$
  • \$\begingroup\$ Out of curiosity, why don't you use WM_MOUSEMOVE ? \$\endgroup\$ – Exaila Jun 9 at 22:07
  • \$\begingroup\$ @Exaila because I now do :) \$\endgroup\$ – Ilya Pakhmutov Jun 10 at 8:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.