Skip to content
Projects

sqmw/MFCMouseEffect

View on GitHub

About

Cross-platform mouse effects and input visualization engine: click, trail, scroll, and hover effects, input indicator overlays, gesture-to-hotkey automation mapping, and extensible WASM plugins.

Productivity & Automation

How these counts are measured

Measured star growth

in 24h
-2
in 7 days
+2
in 15 days
+10
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.en.md

Original

MFCMouseEffect Logo

MFCMouseEffect

Make every click, drag, and scroll visible.
Cross-platform desktop input feedback engine · Extensible · Plugin-powered · WASM-ready

stars release license platform

oosmetrics Top 7 in WebAssembly by acceleration - 2026-05-14

Third-party visibility signal: featured by oosmetrics for WebAssembly acceleration

Download · Docs · Privacy · Issues · Contributing · Star

🇨🇳 中文 | 🇬🇧 English


MFCMouseEffect Mouse Companion showcase

Mouse Companion — more than an effect demo, also an important long-term capability direction for the project

✨ Why Choose MFCMouseEffect

  • 🎯 Five independent effect lanes — click, trail, scroll, hold, and hover are separate capability surfaces, not one animation reskinned five times
  • 🔌 WASM plugin runtime — write your own effects and indicators in WASM while the host keeps rendering boundaries under control
  • ⌨️ Keyboard & Mouse Indicator — visualize mouse clicks, wheel direction, and keyboard combos like Cmd+Tab and W+ x3
  • 🤖 Automation mapping — map mouse actions, wheel input, and gestures to shortcut, delay, URL, and app-launch actions, connecting input feedback to real workflows
  • 🐾 Mouse Companion — a plugin-first route for a cross-platform desktop companion that follows your cursor
  • 🌐 Unified settings UI — shared Web settings across platforms, with one config flow, synchronized state, and recoverable behavior

Great for screen recording, tutorials, live demos, and developers who want bounded WASM extensibility inside a C++ host.

🖼️ Effect Preview

Click Ripple
Click Ripple
Particle Trail
Particle Trail
Scroll Feedback
Scroll Feedback
Hold Charge
Hold Charge
Hover Glow
Hover Glow
Mouse Companion
Mouse Companion

WebSettings UI

Unified Web Settings UI — shared across platforms, everything in one place

⌨️ Keyboard/Mouse Indicator & Automation

Keyboard and Mouse Indicator
Keyboard & Mouse Indicator
Automation Mapping
Automation Mapping
  • Keyboard & Mouse Indicator — show mouse clicks, wheel direction, and keyboard combos together, so signals like L x2, W+ x3, and Cmd+Tab stay obvious in recordings and demos
  • Automation Mapping — currently maps mouse actions, wheel input, and gestures to shortcut, delay, URL, and app-launch actions; fuller scripting, profiles, and advanced action chains are on the roadmap
Expand for best-fit scenarios
  • Screen recording / tutorials / live demos: viewers can see not only where the cursor is, but also what you clicked, switched, or triggered
  • Productivity tools / desktop enhancement: gestures and input mapping are not just decorative layers; they can participate in real interaction flows

🤝 Contributing

The project is actively growing, and many directions are ready for contributors.

Area Description Entry Point
🖱️ Mouse effects Click, trail, scroll, hold, hover, and cursor-decoration styles and tuning Effect docs
🤖 Automation Mapping Map mouse actions, wheel input, and gestures to shortcut / delay / URL / app-launch actions; scripting and profiles are on the roadmap Automation docs
⌨️ Keyboard & Mouse Indicator Mouse, wheel, and keyboard-combo visualization, layout, and WASM indicator work Capability index
🐾 Mouse Companion Companion animations, interactions, and plugins Companion roadmap
🔌 WASM plugins Write effect / indicator plugins, or improve ABI, templates, and tooling Plugin template
🌐 WebSettings Improve settings UX, state sync, and diagnostics entry points WebUI source
🖥️ Cross-platform parity Align Windows / macOS behavior Issue Tracker
📝 Docs & testing Documentation, self-checks, and regression tooling Docs

Recommended flow:

  1. Open an Issue describing your idea
  2. Have a brief discussion to align on direction
  3. Submit a PR
  4. For larger features or architecture changes, email first

📮 Contact: [email protected]

🚀 Quick Start

Windows

# Recommended: open MFCMouseEffect.slnx in Visual Studio 2026 and build Release | x64

# Or use the wrapper commands
.\mfx.cmd build            # Default Release | x64
.\mfx.cmd build --shipping # Lean delivery build
.\mfx.cmd package          # Generate installer

macOS

make build                         # Unified build entrypoint (current macOS host)
make build ARGS="--skip-webui-build"
make test                          # Full POSIX regression suite
make check                         # Docs + WebUI + POSIX regression
./mfx build                       # Build current host only
./mfx build --skip-webui-build    # Skip rebuilding WebUIWorkspace
./mfx run                         # Build and run
./mfx run-no-build                # Run without rebuilding
./mfx run-no-build --seconds 30   # Auto-stop for quick validation
./mfx package                     # Package

# Backward-compatible aliases
./mfx start                       # Same as ./mfx run
./mfx fast                        # Same as ./mfx run-no-build

macOS requires Accessibility and Input Monitoring permissions for global input capture.

📊 Platform Status

Platform Status Notes
Windows 10+ Stable mainline Most complete capability set, regression compatibility preserved
macOS Active mainline Current priority development lane
Linux Follow lane Compile gate and contract coverage

Current priority: macOS mainline first, while keeping Windows behavior regression-free.

📦 Architecture Highlights (expand)

Architecture Design

  • Host-owned rendering boundary — plugins compute logic; the host owns rendering execution, budget checks, fallback, and resources
  • Clear module layering — Core / Platform / Server / WebUI / Tools / Docs each have well-defined responsibilities
  • Progressive extensibility — built-in effects work, WASM plugins can layer on top, and native fallback catches the rest
  • Cross-platform semantic alignment — Windows and macOS share core semantics and settings surfaces
  • Built-in observability — WebSettings, diagnostics, regression scripts, and self-checks were designed together

WASM Plugin Capabilities

  • Separate effects and indicator surfaces
  • Manifest load, reload, import, and export flows
  • Budget control, command validation, error codes, and staged diagnostics
  • Transient and retained rendering semantics
  • Rich command primitives: spawn_text / spawn_image / spawn_pulse / spawn_polyline / spawn_ribbon_strip / spawn_glow_batch and more

Plugin quick start:

📂 Repository Structure (expand)
MFCMouseEffect/
├── MFCMouseEffect/
│   ├── MouseFx/                 # Core: effects, automation, WASM, diagnostics, server
│   ├── Platform/                # Windows / macOS / Linux platform implementations
│   ├── WebUIWorkspace/          # Svelte settings UI source
│   ├── Runtime/                 # Runtime resources and dependencies
│   ├── Assets/                  # Companion and visual assets
│   └── WasmRuntimeBridge/       # WASM runtime bridge
├── tools/
│   ├── platform/regression/     # Regression scripts
│   ├── platform/manual/         # Manual and self-check helpers
│   └── docs/                    # Doc routing and governance scripts
├── docs/                        # Architecture, roadmap, workflow, issue docs
├── examples/                    # Examples and templates
└── mfx / mfx.cmd                # Preferred command entrypoints
❓ FAQ (expand)

Effects not showing on macOS?

Check system permissions: Accessibility + Input Monitoring. The runtime degrades gracefully when permissions are missing and recovers once they are restored.

Why is GPU not enabled by default on Windows?

Stability and payload size. The default is --no-gpu. Use ./mfx.cmd build --gpu when you explicitly want the GPU route.

What is the difference between Shipping and Release?

Shipping keeps the main runtime and WebUI but trims heavy diagnostics and deep test surfaces. It is better for delivery.

Settings revert after Apply?

Many settings are backend-state-driven. If the backend binding did not succeed, the UI reconciles to the real state. Check manifest paths and lane status first.

macOS package blocked on first launch?

Current macOS builds are unsigned. Gatekeeper may block first launch; right-click Open in Finder to allow it.

🧪 Regression & Self-Check (expand)
# Unified make entrypoints (pass underlying options through ARGS)
make test                          # Full POSIX suite
make test ARGS="--skip-linux-gate"
make test-webui                    # WebUI model + dev-contract tests
make check-docs                    # AI-context and doc-health checks

# Full POSIX suite
./tools/platform/regression/run-posix-regression-suite.sh --platform auto

# Effects-focused regression
./tools/platform/regression/run-posix-effects-regression-suite.sh --platform auto

# Automation contract regression
./tools/platform/regression/run-posix-core-automation-contract-regression.sh --platform auto

# WASM-focused regression
./tools/platform/regression/run-posix-wasm-regression-suite.sh --platform auto
📖 Documentation (expand)

📄 License

This project is released under the MIT License. Free to use, modify, and distribute under the license terms.

Privacy details are available in the Privacy Policy.


If it helps, please star ⭐
Share feedback on Issues and Discussions

Explore related projects

Loading…