Difference between revisions of "love.mouse.isDown"

Line 11: Line 11:
 
== See Also ==
 
== See Also ==
  
* [[MouseConstant|Mouse Constant / button]]
+
* [[MouseConstant|Mouse Constant / buttons]]
 
* [[parent::love.mouse]]
 
* [[parent::love.mouse]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Checks whether a certain button is down.}}
 
{{#set:Description=Checks whether a certain button is down.}}

Revision as of 16:03, 24 September 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