Views
Joystick
| Available since LÖVE 0.9.0 |
| This type is not supported in earlier versions. |
Represents a physical joystick.
Constructors
| love.joystick.getJoysticks | Gets a list of connected Joysticks. |
Functions
| Joystick:getAxes | Gets the direction of each axis. | ||
| Joystick:getAxis | Gets the direction of an axis. | ||
| Joystick:getAxisCount | Gets the number of axes on the joystick. | ||
| Joystick:getButtonCount | Gets the number of buttons on the joystick. | ||
| Joystick:getGUID | Gets a stable GUID unique to the type of the physical joystick. | ||
| Joystick:getGamepadAxis | Gets the direction of a virtual gamepad axis. | ||
| Joystick:getGamepadMapping | Gets the button, axis or hat that a virtual gamepad input is bound to. | ||
| Joystick:getHat | Gets the direction of a hat. | ||
| Joystick:getHatCount | Gets the number of hats on the joystick. | ||
| Joystick:getID | Gets the joystick's unique identifier. | ||
| Joystick:getName | Gets the name of the joystick. | ||
| Joystick:getVibration | Gets the current vibration motor strengths on a Joystick with rumble support. | ||
| Joystick:isConnected | Gets whether the Joystick is connected. | ||
| Joystick:isDown | Checks if a button on the Joystick is pressed. | ||
| Joystick:isGamepad | Gets whether the Joystick is recognized as a gamepad. | ||
| Joystick:isGamepadDown | Checks if a virtual gamepad button on the Joystick is pressed. | ||
| Joystick:isVibrationSupported | Gets whether the Joystick supports vibration. | ||
| Joystick:setVibration | Sets the vibration motor speeds on a Joystick with rumble support. | ||
| Object:type | Gets the type of the object as a string. | ||
| Object:typeOf | Checks whether an object is of a certain type. |
Enums
| GamepadAxis | Virtual gamepad axes. | ||
| GamepadButton | Virtual gamepad buttons. | ||
| JoystickHat | Joystick hat positions. | ||
| JoystickInputType | Types of Joystick inputs. |
Supertypes
See Also
- love.joystickadded
- love.joystickremoved
- love.joystickpressed
- love.joystickreleased
- love.joystickaxis
- love.joystickhat
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