Selkies

panels/player-gamepad-button

Functions

PlayerGamepadButton()

function PlayerGamepadButton(touchOnly): Element;

Defined in: panels/player-gamepad-button.tsx:52

Renders the toggle. The player slots exist to contribute gamepad input, so their toggle is reachable on any device; a shared viewer only sees it once the client looks like a touch device (touchOnly: a mobile user agent or a first touchstart), the same gate the top menu applies to its touch entries. The title names the action a click performs, with the same wording as the classic sidebar's touch-gamepad button.

Parameters

ParameterTypeDescription
touchOnlyPlayerGamepadButtonPropsRender only on a mobile or touch-detected client.

Returns

Element

References

PlayerGamepadButton

Re-exports PlayerGamepadButton