MouseClickOnObject
MouseClickOnObject

Checks if the mouse has been clicked within the given object's hit area this frame.

bClick = myMouseKeyboard.MouseClickOnObject( Object )
bClick = myMouseKeyboard.MouseClickOnObject( Object, Button )

Return value
TRUE if the specified mouse button has just been clicked within the object's hit area, FALSE if not.

Parameters
  • Object
    An object to check
  • Button
    The button to check.
    • Window.LEFTBUTTON / Keyboard.LBUTTON
      Checks the left mouse button (default)
    • Window.MIDDLEBUTTON / Keyboard.MBUTTON
      Checks the middle mouse button
    • Window.RIGHTBUTTON / Keyboard.RBUTTON
      Checks the right mouse button
Comments

This will return TRUE for the frame when the mouse is pressed, then FALSE for future frames until the mouse is released.

See also
MouseKeyboard:MouseClick
MouseKeyboard:MouseClickInZone
MouseKeyboard:MouseClickOnObjectRep
MouseKeyboard:MouseOnObject



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