MouseOnObject
MouseOnObject

Checks if the mouse is over the object

bClick = myMouseKeyboard.MouseOnObject( Object )
bClick = myMouseKeyboard.MouseOnObject( Object, bFineDetection )

Return value
TRUE if the mouse is over the object, FALSE if not.

Parameters
  • Object
    An object to check
  • bFineDetection
    TRUE to check against the object's collision mask, FALSE to check only the bounding box
Comments

Fine detection is slightly slower when used often, but gives better results.

See also
MouseKeyboard:MouseClickOnObject
MouseKeyboard:MouseClickOnObjectRep
MouseKeyboard:MouseInZone



JAM © 2005 no one in particular
Project started by David Evans in 2005