Skip to content

Controller.unwatchAll()

jackcarey edited this page Jul 16, 2022 · 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
Clone this wiki locally