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.
Contents
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
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info