Skip to content

Controller.unwatchAll()

Samir Zahran edited this page Aug 30, 2016 · 1 revision

Stops listening for input events from all controllers.

The Controller.unwatchAll() method tells all connected gamepads to stop reporting button and analog stick events to the DOM. The controllers remain connected.

Examples

Controller.unwatchAll();

// button and analog stick events will not fire for any controllers