Author Topic: Windowed mode snaps cursor to window when out of focus  (Read 2247 times)

Offline Fiskbit

  • Arcen Games Contractor
  • Master Member Mark III
  • *****
  • Posts: 1,752
Windowed mode snaps cursor to window when out of focus
« on: September 10, 2009, 10:20:38 pm »
If AI War is out of focus but not minimized, it continues snapping the cursor to the window boundary. I'm unsure if this can be countered, but if so, it might be a good thing to fix.
Have ideas or bug reports for one of our games?  Click here to get started with Mantis for Suggestions and Bug Reports.  Thanks for helping to make our games better!

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Windowed mode snaps cursor to window when out of focus
« Reply #1 on: September 10, 2009, 10:21:33 pm »
This is not a bug, and it's not something I can fix -- that's windows for you.  If you want to work around this, you have to turn off cursor snapping.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Fiskbit

  • Arcen Games Contractor
  • Master Member Mark III
  • *****
  • Posts: 1,752
Re: Windowed mode snaps cursor to window when out of focus
« Reply #2 on: September 10, 2009, 10:25:19 pm »
Okay. Another thing: I still have cursor snapping on, but it's no longer snapping it to the window. I don't know what I did to cause this one. I'll fiddle around in a few minutes to see if I can reproduce it.
Have ideas or bug reports for one of our games?  Click here to get started with Mantis for Suggestions and Bug Reports.  Thanks for helping to make our games better!

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Windowed mode snaps cursor to window when out of focus
« Reply #3 on: September 10, 2009, 10:35:26 pm »
It's a windows thing, either way.  Cursor snapping in windowed mode is not overly well supported.  Generally if you give it focus back, it will snap the cursor again.  If you alt-tab out or hit windows key to get out, generally it will leave your cursor alone for the most part (but sometimes it will grab it again).  All I do is set on property of something like SnapCursor = true, and windows handles the rest.  That's about the extent of the control I have over it.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Fiskbit

  • Arcen Games Contractor
  • Master Member Mark III
  • *****
  • Posts: 1,752
Re: Windowed mode snaps cursor to window when out of focus
« Reply #4 on: September 10, 2009, 10:42:02 pm »
Ah, that's unfortunate. We all know how well fighting with Windows usually works. :)
Have ideas or bug reports for one of our games?  Click here to get started with Mantis for Suggestions and Bug Reports.  Thanks for helping to make our games better!

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Windowed mode snaps cursor to window when out of focus
« Reply #5 on: September 10, 2009, 10:49:25 pm »
Oh yeah...
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Volatar

  • Hero Member Mark III
  • *****
  • Posts: 1,055
  • Patient as a rock
Re: Windowed mode snaps cursor to window when out of focus
« Reply #6 on: September 10, 2009, 10:50:41 pm »
If you were running Linux, this wouldn't be a problem

 :P

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Windowed mode snaps cursor to window when out of focus
« Reply #7 on: September 10, 2009, 10:53:54 pm »
You know, I have nothing against Linux -- I really do like it -- but I think that pretty much all OSes have some sort of baggage.  With Linux it's things like sound, amongst others.  I love that Linux is getting more popular and I hope it continues to make inroads against Windows and make a better competitive environment, but I don't feel like there is any magic silver bullet in any software, ever.  Every program and OS has issues of some variety, no matter how much I love specific ones. :)
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline darke

  • Hero Member
  • *****
  • Posts: 534
Re: Windowed mode snaps cursor to window when out of focus
« Reply #8 on: September 10, 2009, 11:19:29 pm »
Somewhat out of date, but it's still the case: Every OS Sucks: http://www.youtube.com/watch?v=d85p7JZXNy8

(Though I prefere the "Every RobotGirl Sucks" AMV myself, especially since it has a better recording: http://www.youtube.com/watch?v=Es1qVC1jkAU :) )

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Windowed mode snaps cursor to window when out of focus
« Reply #9 on: September 10, 2009, 11:29:37 pm »
That's great!  I had not seen those before. :)
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Volatar

  • Hero Member Mark III
  • *****
  • Posts: 1,055
  • Patient as a rock
Re: Windowed mode snaps cursor to window when out of focus
« Reply #10 on: September 10, 2009, 11:42:57 pm »
To be honest, I use windows. I just hate the thing  :D

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Windowed mode snaps cursor to window when out of focus
« Reply #11 on: September 10, 2009, 11:48:36 pm »
I'm shocked!   ;D
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Huw

  • Jr. Member Mark III
  • **
  • Posts: 90
Re: Windowed mode snaps cursor to window when out of focus
« Reply #12 on: September 12, 2009, 04:21:09 am »
You know, I have nothing against Linux -- I really do like it -- but I think that pretty much all OSes have some sort of baggage.  With Linux it's things like sound, amongst others.

I absolutely agree with you, Chris.  I don't use Linux because I think it's an amazing OS; I use it because I think it's the OS that sucks least.  Quite a difference.  I have yet to use an OS that I thought was brilliant.

Oh, and yeah, sound in Linux is beyond a joke.
I play evenings UK timezone

Offline Echo35

  • Master Member Mark II
  • *****
  • Posts: 1,703
  • More turrets! MORE TURRETS!
Re: Windowed mode snaps cursor to window when out of focus
« Reply #13 on: September 12, 2009, 12:49:18 pm »
Oh, and yeah, sound in Linux is beyond a joke.

Creative lolwut?