From f05c69380c8f23ab7dadb1c9d6240af687c88bed Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 6 Nov 2026 11:38:06 -0300 Subject: kinds #18, ABI 2.2: pa_api says the core's ABI, pa_mouse grows a wheel's amount (a window passes a touchpad's fraction of a turn over a kind's pane, a terminal whole notches), pa_view says glyphs (no graphics), pa_paint's tail padding holds the pointer the kind asks for (the window shows a hand for PA_POINTER_LINK over its pane, a Shadow's frame carries it), and tick is told PA_FRAMED when a frame was drawn since its last; addon-test gains graphics on|off Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/Event.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Event.zig') diff --git a/src/Event.zig b/src/Event.zig index 63dcb5f2..aa93f412 100644 --- a/src/Event.zig +++ b/src/Event.zig @@ -44,6 +44,9 @@ pub const Mouse = struct { /// pane or column out of the window (Handover.zig). col and row are /// still the last cell inside. outside: bool = false, + /// A wheel's turn in notches, a touchpad's fraction of one; 0 is one + /// (a terminal's, every wheel's but a window's over a kind's pane). + amount: f32 = 0, }; pub const Key = struct { -- cgit v1.3