Joystick:getID

Available since LÖVE 0.9.0
This function is not supported in earlier versions.

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.

Function

Synopsis

id = Joystick:getID( )

Arguments

None.

Returns

number id
The Joystick's unique identifier.

See Also

Other Languages