Skip to content

Controller.watchAll()

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