Home » U++ Library support » U++ Widgets - General questions or Mixed problems » capture mouse and limit all events to window
capture mouse and limit all events to window [message #47441] |
Tue, 17 January 2017 09:19 |
slashupp
Messages: 231 Registered: July 2009
|
Experienced Member |
|
|
I'm writing a little game and for it to be functional I need full control over the mouse.
I want to capture the mouse and contain it within a window regardless of how far the mouse is moved.
e.g.: if the mouse is moved far to the right I want to show the pointer as 'stuck' within the right edge
of the window but still responding to vertical movement; all mouse-events(move, clicks, wheel, etc) must
come to my window
how can I achieve this, SetCapture() does not work for this
how/should/can I implement a MouseHook to achieve this?
Also:
how can I set the mouse-pointer to a specific point within my window?
e.g.: if want to (based on some hotkey) place the mousepointer at the center of my window
[Updated on: Wed, 18 January 2017 06:58] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Mar 29 06:31:36 CET 2024
Total time taken to generate the page: 0.01309 seconds
|