Called when a joystick button is pressed.
Available since LÖVE 0.9.0
This variant is not supported in earlier versions.
love.joystickpressed( joystick, button )
Nothing.
function love.joystickpressed(joystick,button) player:jumping() end --inside playerClass function player:jumping() if joyStick:isGamepadDown('a') then if self.jump then self.speedY = self.jumpSpeed self.jump = false end end end
Removed in LÖVE 0.9.0
This variant is not supported in that and later versions.
love.joystickpressed( joystick, button )
Nothing.
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.joystickpressed