Hierarchy

  • DisplayGamepadConfig

Properties

buttonDisplayFunction?: ButtonDisplayFunction

If provided, this function will be called for each button with a state change (pressed, touched, released, etc...)

See

GamepadDisplay.buttonChangeDetails for an example

Configuration for Buttons and Variable Pressure Buttons (eg: triggers) to to represent in the gamepad display

gamepadIndex: number

The index of the gamepad this Gamepad Display should track as returned from navigator.GetGamepads

joystickDisplayFunction?: JoystickDisplayFunction

If provided, this function will be called when the gamepad axies change for a joystick instead of the default display function.

See

GamepadDisplay.defaultButtonDisplayFunction for an example

moveDirectionHighlightClass?: string

The class to add to the corresponding direction indicator element when a gamepad joystick is moved in a direction or a variable button is pressed

pressedHighlightClass?: string

The 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)

touchedHighlightClass?: string

The class to add to the corresponding highlight element when a gamepad button is touched (whether or not its pressed)

Generated using TypeDoc