Difference between revisions of "Joystick:getID"

(Created page)
 
m
Line 1: Line 1:
 
{{newin|[[0.9.0]]|090|type=function}}
 
{{newin|[[0.9.0]]|090|type=function}}
Gets the joystick's unique ID. 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.
+
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 ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 15: Line 15:
 
* [[Joystick:getConnectedIndex]]
 
* [[Joystick:getConnectedIndex]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Gets the joystick's unique ID.}}
+
{{#set:Description=Gets the joystick's unique identifier.}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|Joystick:getID}}
 
{{i18n|Joystick:getID}}

Revision as of 02:21, 27 August 2013

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 = Joystick:getID( )

Arguments

None.

Returns

number id
The Joystick's unique identifier.

See Also

Other Languages