Difference between revisions of "Joystick:getButtonCount"

(Created page)
 
m (moved love.joystick.getButtonCount to Joystick:getButtonCount: function has been moved)
(No difference)

Revision as of 19:02, 26 August 2013

Available since LÖVE 0.9.0
It has been renamed from love.joystick.getNumButtons.


Returns the number of buttons on the joystick.

Function

Synopsis

buttons = love.joystick.getButtonCount( joystick )

Arguments

number joystick
The joystick to be checked

Returns

number buttons
The number of buttons available

See Also

Other Languages