-
Notifications
You must be signed in to change notification settings - Fork 1
Type: String
The id of the gamepad.
The format of the id is not standardized and may to be different from browser to browser. It will likely contain two 4-digit hex strings, representing the USB vendor and product id of the gamepad, and the name of the gamepad as reported by the driver.
var controller = Controller.getController(0);
console.log(controller.id);
// Chrome
>> "Wireless Controller (STANDARD GAMEPAD Vendor: 054c Product: 05c4)"
// Firefox
>> "54c-5c4-Wireless Controller"
The MIT License (MIT)
Copyright © 2022 Jack Carey
Setup
Buttons & Analog Sticks
Controller Layouts
Configuring Settings
Controller Events
Button Events
Analog Stick Events
Controller.supported
Controller.controllers
Controller.controllerCount
Controller.search()
Controller.getController()
Controller.watchAll()
Controller.unwatchAll()
.connectedTimestamp
.id
.index
.inputs
.layoutInfo
.name
.watch()
.unwatch()
Settings Objects
List of Settings
settings.list()
settings.clear()
settings.update()
→ Grunt Tasks
→ Registering Settings
→ Creating Layout Maps