id property

String id
final

A unique identifier for the gamepad controller.

The format is opaque and differs per platform: the device node path on Linux, a device identifier on Windows, the input device id on Android, the gamepad index on web, and a per-process counter on iOS and macOS.

It stays the same for as long as the gamepad is connected, but a gamepad that reconnects is not guaranteed to get the same identifier back.

Implementation

final String id;