Difference between revisions of "love.mouse.isDown"

(Removed potentially confusing line in example)
Line 24: Line 24:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Checks whether a certain button is down.}}
 
{{#set:Description=Checks whether a certain button is down.}}
 +
== Other Languages ==
 +
{{i18n|love.mouse.isDown}}

Revision as of 20:39, 18 November 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.

Example :

if love.mouse.isDown("r") then
   -- do something awesome
end

See Also

Other Languages