-
Notifications
You must be signed in to change notification settings - Fork 1
Controller.getController()
Gets a gamepad by it's index.
Returns: A Controller instance.
The Controller.getController()
method takes an index and returns a reference to the gamepad at that index. If no gamepad is found at the index, it returns undefined
.
Argument | Type | Description |
---|---|---|
index |
Int |
A controller index. |
Controller.getController(0);
>> 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