IsMouseButtonPressed

From OxeyeWiki

Revision as of 12:13, 19 January 2010 by Thewreck (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

daisy.isMouseButtonPressed(button)

This method returns true if the specified button is pressed down.

Parameter Expected Type Description
button A number 0 being left, 1 being right.
Returns

Returns one Boolean, true if button is pressed, false otherwise.

Daisymoon Video Lib

Example

   local leftMouseButtonDown = daisy.isMouseButtonPressed(0)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox