UserInputManager allows apps to override the default behavior when D-pad events are received.
Usage
The following code example show how to useaddListener to register events:
Reference
Methods
UserInputManager.addListener(eventName, callback)
Deprecated: Use theuseAddUserInputListenerCallback() hook instead.
This method allows app to registers listener for specific event, following is a list of all supported events in Vega:
useAddUserInputListenerCallback
This custom hook returns a callback that, when invoked, registers a listener for specific event. When calling this hook, make sure to follows the established rules for hooks. For more information, seeRules of Hooks. The returned callback function takes two paramenters: theUserInputEventName to listen to, and a callback function to invoke when the desired UserInputEventName is pressed.
The following is a list of all supported events in Vega:

