MCPcopy Index your code
hub / github.com/callstack/agent-device / formatPressMessage

Function formatPressMessage

src/core/dispatch-interactions.ts:1100–1105  ·  view source on GitHub ↗
(params: { x: number; y: number; button?: ClickButton })

Source from the content-addressed store, hash-verified

1098}
1099
1100function formatPressMessage(params: { x: number; y: number; button?: ClickButton }): string {
1101 if (params.button && params.button !== 'primary') {
1102 return `Clicked ${params.button} (${params.x}, ${params.y})`;
1103 }
1104 return `Tapped (${params.x}, ${params.y})`;
1105}
1106
1107function formatSwipeMessage(count: number, pattern: SwipePattern): string {
1108 if (count <= 1) return 'Swiped';

Callers 5

handleMacOsSurfacePressFunction · 0.85
handleAlternateClickFunction · 0.85
runLinuxAlternateClickFunction · 0.85
runIosPressSequenceFunction · 0.85
runDirectPressSeriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected