Skip to content

unwatch()

jackcarey edited this page Jul 16, 2022 · 1 revision

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.

Examples

var controller = Controller.getController(0);
controller.unwatch();

// button and analog stick events will not fire for this controller
Clone this wiki locally