
Makepad Event & Action Handling
from antigravity-awesome-skills31,278
Guides handling of input, lifecycle, and widget actions in Makepad apps — events, hit testing, timers, and parent-child action flow.
What it does
This skill equips an agent to explain, design, and debug Makepad UI event handling and action propagation. It covers the Event and Hit enums, widget.handle_event patterns, emitting and capturing actions (cx.action / Cx::post_action), timers and next-frame callbacks, and common helpers for detecting clicks, hovers, and keyboard events. Concrete code examples and best-practice patterns are included.
When to use it
Use this skill when you or a user are building or troubleshooting interactive Makepad widgets — e.g., implementing mouse/touch interactions, keyboard shortcuts, timer-driven animations, or parent-child action flows. Also use for code reviews that need correctness in event propagation or for converting platform events into widget actions.
What's included
- Scripts: none in this SKILL.md (has_scripts=false).
- References: none bundled (has_references=false) but the skill points to local reference files for event and action systems.
- Instructions: detailed code snippets showing Event and Hit enums, example handle_event implementations, action emission/capture patterns, and timer/next-frame usage. Guidance on checking hits, using cx.capture_actions, and common action helper methods is provided.
Compatible agents
Best suited for developer-focused agents that produce or review code (Claude Code, Cursor, Copilot-style assistants). It is language- and runtime-specific (Rust/Makepad), so agents that can reason about Rust examples are ideal.




