Difference between revisions of "love.joystick.isDown"

m (1 revision: Importing from potato (again).)
(No difference)

Revision as of 16:17, 14 February 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