Selkies
Developer ReferenceDashboard (Wish)ComponentsDashboard

components/dashboard/PlayerGamepadButton

Functions

PlayerGamepadButton()

function PlayerGamepadButton(touchOnly): Element;

Defined in: components/dashboard/PlayerGamepadButton.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

On this page

Edit on GitHub