MouseClickOnObjectRep
MouseClickOnObjectRep

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

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

Return value
TRUE if the specified mouse button is held 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 is the same as using Keyboard.IsKeyDown and MouseKeyboard.MouseInZone

See also
MouseKeyboard:MouseClickOnObject
MouseKeyboard:MouseClickRep
MouseKeyboard:MouseClickInZoneRep
MouseKeyboard:MouseOnObject



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