{{newin|[[0.9.0]]|090|type=function}}
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 ===
<source lang="lua">
id, instanceid = Joystick:getID( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|id|The Joystick's unique identifier. Remains the same as long as the game is running.}}
{{param|number|instanceid (nil)|Unique instance identifier. Changes every time the Joystick is reconnected. nil if the Joystick is not connected.}}
== See Also ==
* [[parent::Joystick]]
* [[Joystick:isConnected]]
* [[Joystick:getGUID]]
[[Category:Functions]]
{{#set:Description=Gets the joystick's unique identifier.}}
== Other Languages ==
{{i18n|Joystick:getID}}