Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: westingtyler on January 10, 2017, 06:37:44 AM

Title: mouse/cursor lock to window action?
Post by: westingtyler on January 10, 2017, 06:37:44 AM
Does this exist? Can't find it in ecosystem. I want to be able to enable/disable it, boolean style, as an option in my game.

Currently my mouse will fly all over my different screens, even after I click in the game window.
Title: Re: mouse/cursor lock to window action?
Post by: terri on January 11, 2017, 01:16:36 PM
Note that it only works on standalone builds for Win and Linux, as stated in the docs.
Title: Re: mouse/cursor lock to window action?
Post by: westingtyler on January 15, 2017, 06:22:59 PM
thank you so much! I plan to release my game on windows as a standalone VR build for now. things like other platforms and languages would be great but are too advanced for me in the future if they happen. I am grateful I can compile a build of any kind! thanks again!
Title: Re: mouse/cursor lock to window action?
Post by: miguelfanclub on April 26, 2018, 07:06:04 AM
Hi. This didnt work for me. I still can get the mouse off the window when playing in windowed mode.
Title: Re: mouse/cursor lock to window action?
Post by: 600 on April 26, 2018, 07:38:27 AM
Use action Set Cursor Mode from Ecosystem.
Title: Re: mouse/cursor lock to window action?
Post by: miguelfanclub on April 26, 2018, 01:11:05 PM
Cant find that one in the Ecosystem.

There are:

- Set Cursor Lock State
- Set Cursor Visible
- Screen Show Cursor
Title: Re: mouse/cursor lock to window action?
Post by: 600 on April 27, 2018, 07:00:31 AM
Oh sorry my mistake!

Here the Reply #18 from Lane:
http://hutonggames.com/playmakerforum/index.php?topic=9740.msg50902#msg50902

(or the first post, not sure if they are the same :D )