ConstThe controller's state as last heard by this package. Before the first change it reads as not connected with nothing held, so listen with input.onGamepad for anything that must not be missed.
Calls handler with the controller's state each time it changes: a button down or up, a
trigger moving a step or reaching 0 or 1, the controller connected or gone. Changes come
only while the game is in front (out of it, nothing counts as held).
A function that stops listening.
The player's controller.