Developer ReferenceDashboard (Wish)ComponentsDashboard
components/dashboard/GamepadVisualizer
Functions
GamepadVisualizer()
function GamepadVisualizer(__namedParameters): Element;Defined in: components/dashboard/GamepadVisualizer.tsx:35
Draws the pad; the SVG ids carry the pad index so several can coexist.
Parameters
| Parameter | Type |
|---|---|
__namedParameters | GamepadVisualizerProps |
Returns
Element
getButtonClass()
function getButtonClass(index): string;Defined in: components/dashboard/GamepadVisualizer.tsx:50
Pressed-state class for a button: D-pad 12 to 15, bumpers 4 and 5, everything else.
Parameters
| Parameter | Type |
|---|---|
index | number |
Returns
string
getTriggerStyle()
function getTriggerStyle(index): CSSProperties;Defined in: components/dashboard/GamepadVisualizer.tsx:61
Opacity for the triggers 6 and 7, half to full with pressure.
Parameters
| Parameter | Type |
|---|---|
index | number |
Returns
CSSProperties