I am doing inside the game menu and faced with the problem, how to block the mouse?

BlockInput(true) 

It does not suit me, because It requires, firstly, UAC, and secondly, it blocks the keyboard itself, and the choice of functions in the menu happens to me just with the help of arrows on the keyboard.

What are the options?

  • 2
    There are no options for using pure C ++ - it is worth clarifying in the framework / framework / platform / API / OS the question ... - Fat-Zer
  • The connection "inside the game menu" <-> "lock the mouse" is incomprehensible. Well, show the menu. Why block something? - VTT
  • By block you mean hide? - HolyBlackCat
  • You can use WinAPI, Windows. In-game menu - in the overlay doing the overlay menu on the game. When it is open, the mouse can not be moved, that is, it should be blocked. - Ivan Ivanov
  • Intercept MOUSE_MOVE messages (or whatever it is there ..) and skip - int3

0