- Home /
CursorLockMode.Confined not working? Mouse going off screen in Windowed mode
I've been trying to solve this for hours : How do I prevent the mouse cursor in my game from going off screen in windowed and dual-monitor settings? I've tried using Cursor.lockState = CursorLockMode.Confined but somehow it doesn't work. Basically I can no longer click on the visible desktop items but the mouse still goes off screen, messing up my game controls. I've also tried the suggestions in other threads but the problem is still there. Anyone please?
Your answer
Follow this Question
Related Questions
How can I make player move with cursor?,How can I make player move with mouse? 1 Answer
Moving forward towards the cursor with LookAtMouse? 0 Answers
WoW Movement and Freeze Cursor Location? 1 Answer
Cursor Follow Script Causes Unpredictable Movement 0 Answers
Mouse move object according to grid 3 Answers