Author Topic: Is there a way to lock the mouse cursor to the game screen?  (Read 2520 times)

Offline ElOhTeeBee

  • Jr. Member Mark II
  • **
  • Posts: 69
Is there a way to lock the mouse cursor to the game screen?
« on: October 14, 2012, 11:38:19 am »
I run a multimonitor setup, which AI War apparently doesn't like - I can scroll the mouse onto the other screen when playing fullscreened. Checking the options menu didn't reveal anything to disable this. Did I just miss something, or...?

Offline Oralordos

  • Sr. Member Mark III
  • ****
  • Posts: 434
  • Suffering from Chronic Backstabbing Disorder
Re: Is there a way to lock the mouse cursor to the game screen?
« Reply #1 on: October 14, 2012, 11:43:56 am »
I believe that there is no way to fix this problem. It's just one of the weaknesses of the Unity engine that Ai War is built on. On the bright side, they added something that makes the game pause when you click outside of the window!

Offline LordSloth

  • Sr. Member Mark III
  • ****
  • Posts: 430

Offline paktai

  • Newbie
  • *
  • Posts: 1
Re: Is there a way to lock the mouse cursor to the game screen?
« Reply #3 on: October 25, 2012, 10:32:16 pm »
I just had great success with the MultiMonitor cursorlock program.

I launch AI War through steam, so I used the 'lock program' option - pointing it at AIWar.exe. I also checked the 'Lock Region - Screen' option. I created the shortcut on my desktop, and now I just run the shortcut before launching AI War. It works like a charm.

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Is there a way to lock the mouse cursor to the game screen?
« Reply #4 on: October 26, 2012, 09:46:50 am »
Glad you found a solution :)

Yea, a program that can dig into all the platform-specific hooks can do a lot of that stuff.  Our engine is multiplatform which is great for being able to do things like ship a game for the PC & Mac with near-zero porting effort, but we can't do stuff like forcibly reposition the mouse cursor.
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!