MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / sendCrownRotation

Function sendCrownRotation

packages/client/src/app/AppShell.tsx:2617–2631  ·  view source on GitHub ↗
(delta: number)

Source from the content-addressed store, hash-verified

2615 }
2616
2617 function sendCrownRotation(delta: number) {
2618 if (!selectedSimulator || !Number.isFinite(delta) || delta === 0) {
2619 return;
2620 }
2621 setAccessibilitySelectedId("");
2622 setAccessibilityHoveredId(null);
2623 if (
2624 !sendControl(selectedSimulator.udid, {
2625 type: "crown",
2626 delta,
2627 })
2628 ) {
2629 setLocalError("Simulator control stream disconnected.");
2630 }
2631 }
2632
2633 function prepareSimulatorInput() {
2634 setMenuOpen(false);

Callers 1

handleViewportWheelFunction · 0.85

Calls 1

sendControlFunction · 0.85

Tested by

no test coverage detected