macos-cgeventtap-rust

Community

macOS input interception with Rust CGEventTap.

Authorhafley66
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill demonstrates how to set up a system-wide input interception mechanism on macOS using Rust, bridging high-level Rust code with macOS CoreGraphics event taps to monitor and optionally simulate input events.

Core Features & Use Cases

  • Setup and run CGEventTap in a background thread with CFRunLoop integration.
  • Implement mutable state in the callback via static, Arc<Mutex<_>>, or channels for robust multi-listener patterns.
  • Support double-click detection, key/mouse event simulation, and proper teardown with permission handling.

Quick Start

Run the Rust-based macOS event tap example to start intercepting input.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: macos-cgeventtap-rust
Download link: https://github.com/hafley66/claude-research/archive/main.zip#macos-cgeventtap-rust

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.