MouseClick
MouseClick

Checks if the mouse has been clicked this frame.

bClick = myMouseKeyboard.MouseClick( )
bClick = myMouseKeyboard.MouseClick( Button )

Return value
TRUE if the specified mouse button has just been clicked, FALSE if not.

Parameters
  • 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:MouseClickInZone
MouseKeyboard:MouseClickOnObject
MouseKeyboard:MouseClickRep



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