love.joystick
Provides an interface to connected joysticks.
Contents
Types
Joystick | Represents a physical joystick. | 0.9.0 |
Functions
love.joystick.close | Closes a joystick. | 0.5.0 | 0.9.0 |
love.joystick.getAxes | Returns the position of each axis. | 0.5.0 | 0.9.0 |
love.joystick.getAxis | Returns the direction of the axis. | 0.5.0 | 0.9.0 |
love.joystick.getBall | Returns the change in ball position. | 0.5.0 | 0.9.0 |
love.joystick.getGamepadMappingString | Gets the full gamepad mapping string of the Joysticks which have the given GUID, or nil if the GUID isn't recognized as a gamepad. | 11.3 | |
love.joystick.getHat | Returns the direction of a hat. | 0.5.0 | 0.9.0 |
love.joystick.getJoystickCount | Gets the number of connected joysticks. | 0.9.0 | |
love.joystick.getJoysticks | Gets a list of connected Joysticks. | 0.9.0 | |
love.joystick.getName | Returns the name of a joystick. | 0.5.0 | 0.9.0 |
love.joystick.getNumAxes | Returns the number of axes on the joystick. | 0.5.0 | 0.9.0 |
love.joystick.getNumBalls | Returns the number of balls on the joystick. | 0.5.0 | 0.9.0 |
love.joystick.getNumButtons | Returns the number of buttons on the joystick. | 0.5.0 | 0.9.0 |
love.joystick.getNumHats | Returns the number of hats on the joystick. | 0.5.0 | 0.9.0 |
love.joystick.getNumJoysticks | Returns how many joysticks are available. | 0.5.0 | 0.9.0 |
love.joystick.isDown | Checks if a button on a joystick is pressed. | 0.5.0 | 0.9.0 |
love.joystick.isOpen | Checks if the joystick is open. | 0.5.0 | 0.9.0 |
love.joystick.loadGamepadMappings | Loads a gamepad mappings string or file created with love.joystick.saveGamepadMappings. | 0.9.2 | |
love.joystick.open | Opens up a joystick to be used. | 0.5.0 | 0.9.0 |
love.joystick.saveGamepadMappings | Saves the virtual gamepad mappings of all recently-used Joysticks that are recognized as gamepads. | 0.9.2 | |
love.joystick.setGamepadMapping | Binds a virtual gamepad input to a button, axis or hat. | 0.9.2 |
Enums
GamepadAxis | Virtual gamepad axes. | 0.9.0 | |
GamepadButton | Virtual gamepad buttons. | 0.9.0 | |
JoystickHat | Joystick hat positions. | 0.5.0 | |
JoystickInputType | Types of Joystick inputs. | 0.9.0 |
See Also
- love
- love.gamepadpressed
- love.gamepadreleased
- love.joystickpressed
- love.joystickreleased
- love.joystickadded
- love.joystickremoved
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info