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, instance_id = Joystick:getID( )
Arguments
None.
Returns
number id
- The Joystick's unique identifier.
number instance_id (nil)
- Unique identifier which changes every time the Joystick is reconnected. nil if the Joystick is not connected.
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