kitty/tools/cmd/mouse_demo
Kovid Goyal 40cb797a62
Support detailed wheel events in the kittens framework
Kittens can opt in with Loop.DetailedWheelEvents(), after which scroll
events arrive as MOUSE_WHEEL mouse events whose Wheel field has the
deltas, unit, multiplier, source, phase and momentum/inverted flags.
WheelEvent.Lines() converts the deltas to lines using the terminal's
multiplier when available.

The mouse-demo kitten uses this to move a block drawn with the graphics
protocol up and down with pixel precision, falling back to wheel button
presses in terminals without support, and shows the event details.
2026-11-19 19:57:38 +05:30
..
main.go Support detailed wheel events in the kittens framework 2026-11-19 19:57:38 +05:30