Game Development Community

Callback for mouse cursor leaving the window

by Simon.fm · in Torque Game Builder · 08/19/2010 (9:36 am) · 0 replies

Hello Community,

i recently started working on a project in t2d. The game is supposed to be in windowed mode. There are drag and drop features in the game. My problem now: whenever i move the mouse out of the window, the mouseup callback is not called. Even setMouseLocked doesn't work, whenever i press and hold and move out of the window fast. Does anybody know a solution to this?

Greets
Simon

EDIT: never mind. onMouseLeave did work now after all. I guess I just put the callback on an object (background) in the scene instead of just putting it on the whole screen.

About the author

Recent Threads