Game Development Community

Peeve of the day - the mouse cursor in windowed mode

by Tim Holt · in Torque Game Engine Advanced · 12/18/2006 (4:56 pm) · 2 replies

The cursor management with TSE in windowed mode drives me NUTS. It breaks all those rules about "never move the cursor" and "never hide the cursor" for UI design. I cringe in fear every time I need to shift back to TSE from another window, knowing it's going to probably send my cursor (or the whole window) to some strange location. Or to move the window because I may accidentally resize it and mess things up.

Is there any kind of fix or whatnot that will make the cursor actually be as expected when running TSE in windowed mode?

#1
12/20/2006 (12:16 pm)
There was previously some code around dealing with handling the Mouse pointer and making sure it was Exclusive to the window, etc...

If any changes are made to allow the cursor to go in and out of the TSE window, then it'll probably make weird things happen. We were using the resource/code to allow free movement in and out of the window, but much like you said, alt tabbing and shifting from one window back to our game window would cause it to move, etc
#2
12/21/2006 (12:08 am)
And heres a potential fix for that..

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=7743