Optional
buttonConfiguration for Buttons and Variable Pressure Buttons (eg: triggers) to to represent in the gamepad display
The index of the gamepad this Gamepad Display should track as returned from navigator.GetGamepads
Optional
joystickIf provided, this function will be called when the gamepad axies change for a joystick instead of the default display function.
GamepadDisplay.defaultButtonDisplayFunction for an example
Optional
moveThe class to add to the corresponding direction indicator element when a gamepad joystick is moved in a direction or a variable button is pressed
Optional
pressedThe class to add to the corresponding highlight element when a gamepad button is pressed
Configuration for Joysticks to represent in the gamepad display (based on gamepad axes)
Optional
touchedThe class to add to the corresponding highlight element when a gamepad button is touched (whether or not its pressed)
Generated using TypeDoc
If provided, this function will be called for each button with a state change (pressed, touched, released, etc...)
See
GamepadDisplay.buttonChangeDetails for an example