Difference between revisions of "love.joystick.isDown"

m (1 revision: Importing from potato (again).)
m
Line 1: Line 1:
 
 
Checks if a button on a joystick is pressed.
 
Checks if a button on a joystick is pressed.
 
== Function ==
 
== Function ==
Line 15: 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.}}
 +
== Other Languages ==
 +
{{i18n|love.joystick.isDown}}

Revision as of 20:42, 18 November 2010

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