Skip to content

unwatch()

Samir Zahran edited this page Aug 30, 2016 · 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