Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: Disable mouse grab in OSX  (Read 406 times)

wynnj

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 2
    • View Profile
Disable mouse grab in OSX
« on: January 25, 2011, 11:29:26 AM »

Is there a way to disable the mouse grab on OSX? I use DISCL_FOREGROUND and DISCL_NONEXCLUSIVE on windows, but I cannot find anything in the docs/source to do this on OSX.

Is it even possible?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Re: Disable mouse grab in OSX
« Reply #1 on: January 25, 2011, 09:35:12 PM »

The OISConsole demo has these lines commented out:
//   pl.insert(std::make_pair(std::string("x11_mouse_grab"), std::string("false")));
//   pl.insert(std::make_pair(std::string("x11_mouse_hide"), std::string("false")));

Setting those params will do what you ask.
Logged

wynnj

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 2
    • View Profile
Re: Disable mouse grab in OSX
« Reply #2 on: January 26, 2011, 11:03:01 AM »

That appears to only work for X11. What about OSX? Or have I missed something?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Re: Disable mouse grab in OSX
« Reply #3 on: January 26, 2011, 07:33:06 PM »

Sorry, missed the OSX part. I don't think there is a method implemented for that platform. You could look at the OSX platform code to see if there is a way to capture without hiding the mouse.
Logged