Joystick:isGamepad
Available since LÖVE 0.9.0 |
This function is not supported in earlier versions. |
Gets whether the Joystick is recognized as a gamepad. When this is the case, the Joystick's button and axis layout can be used in a standardized manner between different operating systems and joystick models via Joystick:getGamepadAxis and related functions.
Function
Synopsis
isgamepad = Joystick:isGamepad( )
Arguments
None.
Returns
boolean isgamepad
- True if the Joystick is recognized as a gamepad, false otherwise.
Notes
If the Joystick is recognized as a gamepad, the physical locations for the virtual gamepad axes and buttons correspond as closely as possible to the layout of a standard Xbox 360 controller.
See Also
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