I'm creating some objects on mouse_down, moving them on mouse_move, and releasing on mouse_up.
But when I drag the mouse out of the player, none of these events is fired, and my object just hangs in the air.
I'm not sure if this scenario is impossible on a real device, as I don't have a developer account with Apple yet (pending approval).
Any ideas on how to approach this?
People call me "underscore".
Comments
If you are testing on the simulator, there is no event to know when the mouse out of simulator. However if you try it on real device, touch/mouse event will cancelled when your finger go out from touch screen
http://www.nightspade.com
Any one who has a device on their hand can test it?
And use APPLICATION_SUSPEND event to pause your game. (look at the example Application Lifecycle)
Thanks again @atilim, @ar2rsawseen.