Joystick:getID
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.
id, instanceid = Joystick:getID()
id number The Joystick's unique identifier. Remains the same as long as the game is running.
instanceid number Unique instance identifier. Changes every time the Joystick is reconnected. nil if the Joystick is not connected.