-
Couldn't load subscription status.
- Fork 1
unwatch()
Stops listening for input events.
The .unwatch() method tells a gamepad to stop reporting button and analog stick events to the DOM. The gamepad remains connected.
var controller = Controller.getController(0);
controller.unwatch();
// button and analog stick events will not fire for this controllerThe 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