detecting mouse off
by BryceSquared · in Torque 3D Professional · 01/07/2010 (8:42 am) · 5 replies
Using PlayGui::onMouseMove, i am going to do a ray cast to see if you have moused over an object. Before I start I started thinking about how to get a mouse off.
How do I get a mouse off? =P
How do I get a mouse off? =P
#2
01/07/2010 (7:16 pm)
No, I mean when the cursor is over an object, and when it is not over an object. I need a way to call a function when the cursor is not over an object.
#3
Is it that ?
Nicolas Buquet
www.buquet-net.com/cv/
01/08/2010 (5:38 am)
So, with a loop or a scheduled raycast, if after the raycast, the object or lack of object under the mouse is different from the object that was previously under the mouse, you got a "mouse off" or "mouse leave" on that object.Is it that ?
Nicolas Buquet
www.buquet-net.com/cv/
#4
Is that the most efficient solution? Or would there be a better way?
01/08/2010 (5:57 am)
Yes thats what I was looking for.Is that the most efficient solution? Or would there be a better way?
#5
Nicolas Buquet
www.buquet-net.com/cv/
01/08/2010 (11:10 am)
I don't know of a better way, but I'm not a specialist.Nicolas Buquet
www.buquet-net.com/cv/
Torque 3D Owner Nicolas Buquet