Difference between revisions of "love.mouse.isDown"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 
+
Checks whether a certain button is down.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 13: Line 13:
 
* [[parent::love.mouse]]
 
* [[parent::love.mouse]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Checks whether a certain button is down.}}

Revision as of 16:17, 14 February 2010

Checks whether a certain button is down.

Function

Synopsis

down = love.mouse.isDown( button )

Arguments

MouseConstant button
The button to check.

Returns

boolean down
True if the specified button is down.

See Also