Hello,
i would like to restrict the mouse cursor to a certain area of the screen, like shown in this example picture. It´s important that the restricted area always stays relative to the full viewport (no matter how small the viewport window is resized or whether it´s in fullscreen mode).
- the mouse cursor should be moveable within the restricted (in this case TEAL) area only
- once the mouse cursor gets to the edge of this area, it shouldn´t be able to move outside the area, but stay at the edge
I tried out several methods with unsatisfying results, i hope your expertise will open my eyes to something obvious that i´ll keep missing for some reason.
Thank you in advance!
Comment