/** * MCP tool: send input events to the running CrossPad simulator. * Supports: click, pad_press/release, encoder_rotate/press/release, key. */ /** Which coordinate space a click was measured in. */ export type ClickSpace = "lcd" | "window"; /** Default hold between button-down and button-up, in ms. The simulator polls * the mouse indev every ~30 ms and only samples the button state, so a down * and an up in the same tick are never seen as a press at all. */ export declare const CLICK_HOLD_MS_DEFAULT = 120; export type InputAction = { action: "click"; x: number; y: number; space?: ClickSpace; hold_ms?: number; } | { action: "pad_press"; pad: number; velocity?: number; } | { action: "pad_release"; pad: number; } | { action: "encoder_rotate"; delta: number; } | { action: "encoder_press"; } | { action: "encoder_release"; } | { action: "key"; keycode: number; }; export interface InputResult { success: boolean; action: string; response?: Record; error?: string; } /** * Send a single input event to the simulator. */ export declare function crosspadInput(input: InputAction): Promise;