Joystick:getName

Joystick:getName Available since LÖVE 0.9.0 It has been moved from love.joystick.getName. Gets the name of the joystick. Function Synopsis name = Joystick:getName( ) Arguments None. Returns string name The name of the joystick. See Also Joystick

Joystick:getID

Joystick:getID Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the joystick's unique identifier. The identifier will remain the same for the life of the game, even when the Joystick is disconnected and reconnected, but it will change when the game is re-launched. Function Synopsis id, instanceid = Joystick:getID( ) Arguments None. Returns number id The Joystick's unique identifier. Remains the same as long as the game is running. number instanceid (nil

Joystick:getHatCount

Joystick:getHatCount Available since LÖVE 0.9.0 It has been moved from love.joystick.getNumHats. Gets the number of hats on the joystick. Function Synopsis hats = Joystick:getHatCount( ) Arguments None. Returns number hats How many hats the joystick has. See Also Joystick Joystick:getHat

Joystick:getHat

Joystick:getHat Available since LÖVE 0.9.0 It has been moved from love.joystick.getHat. Gets the direction of the Joystick's hat. Function Synopsis direction = Joystick:getHat( hat ) Arguments number hat The index of the hat to be checked. Returns JoystickHat direction The direction the hat is pushed. See Also Joystick Joystick:getHatCount

Joystick:getGUID

Joystick:getGUID Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets a stable GUID unique to the type of the physical joystick which does not change over time. For example, all Sony Dualshock 3 controllers in OS X have the same GUID. The value is platform-dependent. Function Synopsis guid = Joystick:getGUID( ) Arguments None. Returns string guid The Joystick type's OS-dependent unique identifier. See Also Joystick Joystick:getID love.joystick.setGam

Joystick:getGamepadMapping

Joystick:getGamepadMapping Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the button, axis or hat that a virtual gamepad input is bound to. Function Synopsis inputtype, inputindex, hatdirection = Joystick:getGamepadMapping( axis ) Arguments GamepadAxis axis The virtual gamepad axis to get the binding for. Returns JoystickInputType inputtype The type of input the virtual gamepad axis is bound to. number inputindex The index of the Joystick's button,

Joystick:getGamepadAxis

Joystick:getGamepadAxis Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the direction of a virtual gamepad axis. If the Joystick isn't recognized as a gamepad or isn't connected, this function will always return 0. Function Synopsis direction = Joystick:getGamepadAxis( axis ) Arguments GamepadAxis axis The virtual axis to be checked. Returns number direction Current value of the axis. Examples Move x and y values based on a gamepad thumbstick funct

Joystick:getButtonCount

Joystick:getButtonCount Available since LÖVE 0.9.0 It has been moved from love.joystick.getNumButtons. Gets the number of buttons on the joystick. Function Synopsis buttons = Joystick:getButtonCount( ) Arguments None. Returns number buttons The number of buttons available. See Also Joystick Joystick:isDown

Joystick:getAxisCount

Joystick:getAxisCount Available since LÖVE 0.9.0 It has been moved from love.joystick.getNumAxes. Gets the number of axes on the joystick. Function Synopsis axes = Joystick:getAxisCount( ) Arguments None. Returns number axes The number of axes available. See Also Joystick Joystick:getAxis Joystick:getAxes

Joystick:getAxis

Joystick:getAxis Available since LÖVE 0.9.0 It has been moved from love.joystick.getAxis. Gets the direction of an axis. Function Synopsis direction = Joystick:getAxis( axis ) Arguments number axis The index of the axis to be checked. Returns number direction Current value of the axis. See Also Joystick Joystick:getAxes Joystick:getAxisCount