playMaker

Author Topic: mouse/cursor lock to window action?  (Read 4504 times)

westingtyler

  • Sr. Member
  • ****
  • Posts: 277
    • My Video Game Projects Web Site
mouse/cursor lock to window action?
« 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.

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: mouse/cursor lock to window action?
« Reply #1 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.

westingtyler

  • Sr. Member
  • ****
  • Posts: 277
    • My Video Game Projects Web Site
Re: mouse/cursor lock to window action?
« Reply #2 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!

miguelfanclub

  • Full Member
  • ***
  • Posts: 165
Re: mouse/cursor lock to window action?
« Reply #3 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.

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 715
    • Flashing Lights
Re: mouse/cursor lock to window action?
« Reply #4 on: April 26, 2018, 07:38:27 AM »
Use action Set Cursor Mode from Ecosystem.

miguelfanclub

  • Full Member
  • ***
  • Posts: 165
Re: mouse/cursor lock to window action?
« Reply #5 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

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 715
    • Flashing Lights
Re: mouse/cursor lock to window action?
« Reply #6 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 )