Skip to content

Controller.watchAll()

jackcarey edited this page Jul 16, 2022 · 1 revision

Begins listening for input events for all controllers.

The Controller.watchAll() method signals to all gamepads that they should begin reporting button and analog stick events to the DOM.

Examples

Controller.watchAll();

// button and analog stick events will begin firing for all controllers
Clone this wiki locally