Difference between revisions of "love.joystick.isDown"

m
Line 14: Line 14:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Checks if a button on a joystick is pressed.}}
 
{{#set:Description=Checks if a button on a joystick is pressed.}}
 +
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.joystick.isDown}}
 
{{i18n|love.joystick.isDown}}

Revision as of 10:31, 25 March 2011

Checks if a button on a joystick is pressed.

Function

Synopsis

down = love.joystick.isDown( joystick, button )

Arguments

number joystick
The joystick to be checked
number button
The button to be checked

Returns

boolean down
True if the button is down, false if it is not

See Also


Other Languages