-
Notifications
You must be signed in to change notification settings - Fork 1
Controller.controllers
Type: Object {index: Controller}
A zero-indexed list of gamepads currently connected.
Indices are not necessarily consecutive, but do represent a gamepad's index when calling Controller.getController()or getting a gamepads's id.
console.log(Controller.controllers);
>> Object {
>> 0: Controller,
>> 1: Controller,
>> 3: Controller
>> }
Gamepad indeces may be non-consecutive if a gamepad in the middle of the list is disconnected. New controllers will be added to the lowest available slot, so an index that was once undefined may become defined in the future.
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