love.joystick.isDown

love.joystick.isDown Removed in LÖVE 0.9.0 It has been moved to Joystick:isDown. Checks if a button on a joystick is pressed. Function Synopsis down = love.joystick.isDown( joystick, button ) Arguments number joystick The joystick to be checked number button The button to be checked Returns boolean down True if the button is down, false if it is not Function Available since LÖVE 0.7.2 This variant is not supported in earlier versions. Synopsis anyDown = love.joystick.isDown( joy

love.joystick.isOpen

love.joystick.isOpen Removed in LÖVE 0.9.0 This function is not supported in that and later versions. Checks if the joystick is open. Function Synopsis open = love.joystick.isOpen( joystick ) Arguments number joystick The joystick to be checked Returns boolean open True if the joystick is open, false if it is closed. See Also love.joystick

love.joystick.loadGamepadMappings

love.joystick.loadGamepadMappings Available since LÖVE 0.9.2 This function is not supported in earlier versions. Loads a gamepad mappings string or file created with love.joystick.saveGamepadMappings. It also recognizes any SDL gamecontroller mapping string, such as those created with Steam's Big Picture controller configure interface, or this nice database. Function Loads a gamepad mappings string from a file. Synopsis love.joystick.loadGamepadMappings( filename ) Arguments string filen

love.joystick.open

love.joystick.open Removed in LÖVE 0.9.0 This function is not supported in that and later versions. Opens up a joystick to be used, i.e. makes it ready to use. By default joysticks that are available at the start of your game will be opened. NOTE: Unlike conventional Lua indexes, joysticks begin counting from 0 in LÖVE 0.7.2 and below. To to open the first joystick, you would use love.joystick.open(0). This is not the case in LÖVE 0.8.0 and later. Function Synopsis open = love.joystick.op

love.joystick.saveGamepadMappings

love.joystick.saveGamepadMappings Available since LÖVE 0.9.2 This function is not supported in earlier versions. Saves the virtual gamepad mappings of all Joysticks that are recognized as gamepads and have either been recently used or their gamepad bindings have been modified. The mappings are stored as a string for use with love.joystick.loadGamepadMappings. Function Saves the gamepad mappings of all relevant joysticks to a file. Synopsis mappings = love.joystick.saveGamepadMappings( fi

love.joystick.setGamepadMapping

love.joystick.setGamepadMapping Available since LÖVE 0.9.2 This function is not supported in earlier versions. Due to a bug, any mapping that is a suffix of another (for example "x" is a suffix to "leftx") needs to be mapped first Binds a virtual gamepad input to a button, axis or hat for all Joysticks of a certain type. For example, if this function is used with a GUID returned by a Dualshock 3 controller in OS X, the binding will affect Joystick:getGamepadAxis and Joystick:isGamepadDown

love.joystickadded

love.joystickadded Available since LÖVE 0.9.0 This function is not supported in earlier versions. Called when a Joystick is connected. Function Synopsis love.joystickadded( joystick ) Arguments Joystick joystick The newly connected Joystick object. Returns Nothing. Notes This callback is also triggered after love.load for every Joystick which was already connected when the game started up. See Also love love.joystick love.joystickremoved Joystick:isConnected

love.joystickaxis

love.joystickaxis Available since LÖVE 0.9.0 This callback is not supported in earlier versions. Called when a joystick axis moves. Function Synopsis love.joystickaxis( joystick, axis, value ) Arguments Joystick joystick The joystick object. number axis The axis number. number value The new axis value. Returns Nothing. See Also love

love.joystickhat

love.joystickhat Available since LÖVE 0.9.0 This callback is not supported in earlier versions. Called when a joystick hat direction changes. Function Synopsis love.joystickhat( joystick, hat, direction ) Arguments Joystick joystick The joystick object. number hat The hat number. JoystickHat direction The new hat direction. Returns Nothing. See Also love

love.joystickpressed

love.joystickpressed Called when a joystick button is pressed. Function Available since LÖVE 0.9.0 This variant is not supported in earlier versions. Synopsis love.joystickpressed( joystick, button ) Arguments Joystick joystick The joystick object. number button The button number. Returns Nothing. Examples Use getPosition to help draw a custom mouse image function love.joystickpressed(joystick,button) player:jumping() end   --inside playerClass function player:jumping() if joySt