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

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