love.joystick.getNumButtons

love.joystick.getNumButtons

Removed in LÖVE 0.9.0
It has been renamed to Joystick:getButtonCount.


Returns the number of buttons on the joystick.

Function

Synopsis

buttons = love.joystick.getNumButtons( joystick )

Arguments

number joystick
The joystick to be checked

Returns

number buttons
The number of buttons available

See Also


doc_love
2017-03-21 15:48:50
Comments
Leave a Comment

Please login to continue.