Joystick:getDeviceInfo
Available since LÖVE 11.3 |
This function is not supported in earlier versions. |
Gets the USB vendor ID, product ID, and product version numbers of joystick which consistent across operating systems.
Can be used to show different icons, etc. for different gamepads.
Function
Synopsis
vendorID, productID, productVersion = Joystick:getDeviceInfo( )
Arguments
None.
Returns
number vendorID
- The USB vendor ID of the joystick.
number productID
- The USB product ID of the joystick.
number productVersion
- The product version of the joystick.
Notes
Some Linux distribution may not ship with SDL 2.0.6 or later, in which case this function will returns 0 for all the three values.
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