MouseClickInZoneRep
MouseClickInZoneRep

Checks if the mouse key is down and the mouse is within the zone.

bClick = myMouseKeyboard.MouseClickInZoneRep( Zone )
bClick = myMouseKeyboard.MouseClickInZoneRep( Zone, Button )
bClick = myMouseKeyboard.MouseClickInZoneRep( X, Y, Width, Height, bGUI )
bClick = myMouseKeyboard.MouseClickInZoneRep( X, Y, Width, Height, bGUI, Button )

Return value
TRUE if the specified mouse button is held within the zone, FALSE if not.

Parameters
  • Zone
    A zone object representing the check area
  • X
    The x coordinate of the zone to check
  • Y
    The y coordinate of the zone to check
  • Width
    The width of the zone to check
  • Height
    The height of the zone to check
  • bGUI
    TRUE to check the position relative to the GUI layer. FALSE (default) to check relative to the game layer
  • 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 similar to using Keyboard.IsKeyDown and MouseKeyboard.MouseInZone

See also
MouseKeyboard:MouseClickInZone
MouseKeyboard:MouseClickRep
MouseKeyboard:MouseClickOnObjectRep
MouseKeyboard:MouseInZone



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