MCPcopy Create free account
hub / github.com/buttplugio/buttplug / setConnectedState

Function setConnectedState

wasm/examples/basic/src/main.ts:86–92  ·  view source on GitHub ↗
(connected: boolean)

Source from the content-addressed store, hash-verified

84}
85
86function setConnectedState(connected: boolean) {
87 btnConnect.disabled = connected;
88 btnLogging.disabled = !connected;
89 btnScan.disabled = !connected;
90 btnStopScan.disabled = true;
91 btnDisconnect.disabled = !connected;
92}
93
94// ── Event handlers ────────────────────────────────────────────────────────────
95

Callers 1

main.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected