W3cubDocs

/LÖVE

love.joystick.getJoystickCount

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


Gets the number of connected joysticks.

Function

Synopsis

joystickcount = love.joystick.getJoystickCount( )

Arguments

None.

Returns

number joystickcount
The number of connected joysticks.

See Also

© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.joystick.getJoystickCount