I noticed in some games the cursor likes to leave the window. This becomes somewhat a problem when games require constant attention and reaction when playing, whether it be shooting a horde of zombies or moving a bar to keep objects from leaving the level, etc. Is there a way to keep the cursor in the game window or frame during play?
I do apologize if the question on a related subject has been asked already. I had trouble finding it if so.
Develop games in your browser. Powerful, performant & highly capable.
If you could do this, you would be able to trap someone's cursor inside an application!
Just make sure the cursor is visible, and it should be fairly difficult for someone to lose it.
only workaround I would know at the moment is to set the game to fullscreen and let the player press F11 to switch the browser into real full screen mode too.
Another option might be to pause the game when the mouse cursor leaves the view port.
Here is an example: https://dl.dropbox.com/u/38038537/examples/MouseInGame_example.capx
sqiddster Good point. I do see how that could very well be misused. Understandable why it can't and shouldn't be implemented.
Ubivis Yea, usually what I like to do.
Wastrel Very useful, thank you! Why didn't I think of that?