love.joystick.getBall

love.joystick.getBall Removed in LÖVE 0.9.0 This function is not supported in that and later versions. Returns the change in ball position. Function Synopsis dx, dy = love.joystick.getBall( joystick, ball ) Arguments number joystick The joystick to be checked number ball The ball to be checked Returns number dx Change in x of the ball position. number dy Change in y of the ball position. See Also love.joystick

love.joystick.getHat

love.joystick.getHat Removed in LÖVE 0.9.0 It has been moved to Joystick:getHat. Returns the direction of a hat. Function Synopsis direction = love.joystick.getHat( joystick, hat ) Arguments number joystick The joystick to be checked number hat The hat to be checked Returns JoystickConstant direction The direction the hat is pushed See Also love.joystick

love.joystick.getJoystickCount

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 love.joystick love.joystick.getJoysticks

love.joystick.getJoysticks

love.joystick.getJoysticks Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets a list of connected Joysticks. Function Synopsis joysticks = love.joystick.getJoysticks( ) Arguments None. Returns table joysticks The list of currently connected Joysticks. Examples function love.draw() local joysticks = love.joystick.getJoysticks() for i, joystick in ipairs(joysticks) do love.graphics.print(joystick:getName(), 10, i * 20) end end See Also

love.joystick.getName

love.joystick.getName Removed in LÖVE 0.9.0 It has been moved to Joystick:getName. Returns the name of a joystick. Function Synopsis name = love.joystick.getName( joystick ) Arguments number joystick The joystick to be checked Returns string name The name See Also love.joystick

love.joystick.getNumAxes

love.joystick.getNumAxes Removed in LÖVE 0.9.0 It has been moved to Joystick:getAxisCount. Returns the number of axes on the joystick. Function Synopsis axes = love.joystick.getNumAxes( joystick ) Arguments number joystick The joystick to be checked Returns number axes The number of axes available See Also love.joystick

love.joystick.getNumBalls

love.joystick.getNumBalls Removed in LÖVE 0.9.0 This function is not supported in that and later versions. Returns the number of balls on the joystick. Function Synopsis balls = love.joystick.getNumBalls( joystick ) Arguments number joystick The joystick to be checked Returns number balls The number of balls available See Also love.joystick

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 love.joystick

love.joystick.getNumHats

love.joystick.getNumHats Removed in LÖVE 0.9.0 It has been moved to Joystick:getHatCount. Returns the number of hats on the joystick. Function Synopsis hats = love.joystick.getNumHats( joystick ) Arguments number joystick The joystick to be checked Returns number hats How many hats the joystick has See Also love.joystick

love.joystick.getNumJoysticks

love.joystick.getNumJoysticks Removed in LÖVE 0.9.0 It has been renamed to love.joystick.getJoystickCount. Returns how many joysticks are available. Function Synopsis joysticks = love.joystick.getNumJoysticks( ) Arguments None. Returns number joysticks The number of joysticks available See Also love.joystick