Reference.MouseIsPressed History

Hide minor edits - Show changes to markup

May 18, 2012, at 04:35 PM by Scott Fitzgerald -
Changed lines 15-16 from:

When there is no value passed, it checks the status of all the left mouse button.

to:

When there is no value passed, it checks the status of the left mouse button.

May 18, 2012, at 04:34 PM by Scott Fitzgerald -
Changed lines 7-8 from:

Checks the current status of all mouse buttons, and reports if any are pressed or not.

to:

Checks the current status of all mouse buttons, and reports if any are pressed or not.

Changed lines 15-16 from:

When there is no value passed, it checks the status of all the buttons.

to:

When there is no value passed, it checks the status of all the left mouse button.

Deleted line 26:

Example

April 27, 2012, at 10:31 PM by Scott Fitzgerald -
Changed lines 27-59 from:
to:
Changed line 66 from:
to:
April 27, 2012, at 10:21 PM by Scott Fitzgerald -
Added lines 26-34:
December 07, 2011, at 01:28 AM by Scott Fitzgerald -
Deleted line 25:
November 30, 2011, at 05:49 AM by Scott Fitzgerald -
Changed lines 17-21 from:

button: which mouse button to release - int

  • Left button : 1
  • Right button : 2
  • Middle button : 4
to:

button: which mouse button to check - char

  • MOUSE_LEFT (default)
  • MOUSE_RIGHT
  • MOUSE_MIDDLE
November 30, 2011, at 03:53 AM by Scott Fitzgerald -
Changed lines 15-16 from:

When there is no value passed to Mouse.isPressed(), it checks the status of all the buttons.

to:

When there is no value passed, it checks the status of all the buttons.

November 30, 2011, at 03:52 AM by Scott Fitzgerald -
Added lines 1-26:

Mouse

Mouse.isPressed()

Description

Checks the current status of all mouse buttons, and reports if any are pressed or not.

Syntax

Mouse.isPressed();
Mouse.isPressed(button);

Parameters

When there is no value passed to Mouse.isPressed(), it checks the status of all the buttons.

button: which mouse button to release - int

  • Left button : 1
  • Right button : 2
  • Middle button : 4

Returns

boolean : reports wether a button is pressed or not

Reference Home

Share