1
Window / keep the mouse inside the window [ résolu / solved ]
« on: February 25, 2010, 10:38:22 am »
I have the same problem in our program.
When I push down a mouse button I want the application to grab the mouse.
For me it is not really an option that the mouse is then kept in the center of the screen, and hidden so the user does not realize what happenes.
The only way to do so is by setting the mouse position to the center of the screen which fires up an event and does not work if the window is too small and the mouse movement too fast. Also it defeats Drag'n'Drop...
So I wonder is there a way (Windows only) to get mouse move events that happen outside of the Window area while the window is focused?
Or is it possible to grab the mouse and keyboard input exclusively
When I push down a mouse button I want the application to grab the mouse.
For me it is not really an option that the mouse is then kept in the center of the screen, and hidden so the user does not realize what happenes.
The only way to do so is by setting the mouse position to the center of the screen which fires up an event and does not work if the window is too small and the mouse movement too fast. Also it defeats Drag'n'Drop...
So I wonder is there a way (Windows only) to get mouse move events that happen outside of the Window area while the window is focused?
Or is it possible to grab the mouse and keyboard input exclusively