Skip to content

Input event log saved alongside each recording (clicks, cursor, keys) on the video clock #118

Closed

Description

@TMHSDigital

What and who

Opt-in start_recording { events: true } writes <recording>.events.jsonl: mouse clicks, cursor positions (sampled), scroll, and key presses, each with a timestamp on the video's clock. Key text is masked by default (keys: "masked" | "modifiers" | "full").

Why

This is the foundation for the most valuable screencast effects and for agent understanding:

Approach

  • Small helper process (PowerShell + SetWindowsHookEx low-level mouse/keyboard hooks via Add-Type, or a tiny bundled exe) started and stopped with the ffmpeg session; record ffmpeg start time for alignment.
  • Coordinates in physical desktop pixels, plus the capture region offset so events map to video pixels.
  • Privacy: off by default, masked keys by default, documented in the threat model; the file sits next to the recording and is covered by .gitignore.
  • get_session reports the events path; a read_events { sessionId, from?, to?, types? } helper returns slices.

Done when

Recording with events: true produces a JSONL whose click timestamps match the visible clicks within ~1 frame. Keys are masked unless explicitly requested, and the threat model section is updated.

Activity

  1. added
    feature
    effort: medium
    impact: high
    on Oct 24, 2026
  2. TMHSDigital commented on Oct 25, 2026

    @TMHSDigital
    OwnerAuthor

    Status: not implemented in this pass. I'm leaving this open for a maintainer decision.

    The parts that need no system-wide input capture can still go ahead:

    • Auto-zoom (Auto-zoom and cursor emphasis (zoom_to): Screen Studio-style polish for screencasts #119) can target where the screen changed (the cell-grid differ behind screen_diff / wait_for_change already finds those regions), or explicit keyframes.
    • Click / keystroke badges can be drawn from an event list supplied by the caller (e.g. {t: 3.2, label: "Ctrl+S"}), the same way callout draws annotations.
    • For live keystroke overlays while recording, existing tools such as OBS input-overlay plugins or NohBoard show up in the capture automatically.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort: mediumfeatureimpact: high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions