instance-id ( controller -- id )
Game controller input

Prev:product-id ( controller -- id )
Next:calibrate-controller ( controller -- )


Vocabulary
game.input

Inputs
controllera controller


Outputs
idA unique identifier


Word description
Returns an identifier uniquely representing the game controller device represented by controller. This identifier paired with the device's product-id provides a unique identifier for a particular device that persists between reboots (but not necessarily between computers). This unique identifier can be used to find the same device again with the find-controller-instance word. Depending on the platform, the instance-id may change if the device is plugged into a different port. The type of the identifier value is platform-specific, but equivalent instance-ids are guaranteed to be testable with the = word.

See also
product-string, product-id, find-controller-products, find-controller-instance

Definition


Methods