← Back to docs

PCP · pcp

PCP Simulator — Input Simulation Fallback

Input simulation fallback adapter (Tier 3) for apps that don't support native PCP or AT-SPI2 — simulates keyboard/mouse input.

pcp-simulatorv0.2.0pcp
1.1K
Lines of Code
52
Tests
9
Files

Architecture

Implements input simulation via uinput for apps without accessibility support.

Overview

pcp-simulator is the Tier 3 fallback for the Portal Capability Protocol. When an app doesn't support native PCP (Tier 1) or AT-SPI2 (Tier 2), the simulator falls back to simulating keyboard and mouse input to interact with the app. This is the lowest-fidelity detection path but ensures universal compatibility — any GUI app can be controlled.

Data Flow

App without PCP/AT-SPI2 → pcpd falls back to simulator → simulates keyboard/mouse via uinput → app responds

Dependencies

Internal (1)

External (6)

tokio workspaceserde_json workspacechrono workspacetracing workspacethiserror workspaceasync-trait workspace

Depends on pcp-core. Uses uinput for input simulation.