Files
qemu-reims-vgpu/include/ui
Anees Iqbal 9017d7e47e ui/input: add smooth scroll events
User interfaces send scrolling to the guest as wheel buttons, one press
and release per notch. A host's trackpad scrolls by points, and has the
guest follow the fingers only when the guest gets the distance, and the
phases of the gesture and of the momentum scrolling after it, which is
what a trackpad or Virtualization.framework's pointing device gives a
macOS guest.

Add an input event kind for that: InputScrollEvent carries a distance in
1/256 pixel on one axis, in the direction of the wheel buttons (up and
left above 0), with the gesture's phase and the momentum's. The events up
to a synchronization make one report. qemu_input_queue_scroll() queues one,
QMP's input-send-event and replay carry them, and the input_event_scroll
trace shows them. qemu_input_scrolls_smoothly() tells a user interface
whether the device that takes a console's wheel takes them too, as
qemu_input_is_absolute() tells it about the pointer; where it does not, the
interface keeps sending wheel buttons.
2026-11-15 01:57:09 -08:00
..
2026-09-10 19:59:42 +04:00
2026-11-15 01:57:09 -08:00
2026-05-25 01:00:54 +04:00
2026-06-24 15:41:14 +04:00
2024-01-30 21:20:20 +03:00
2026-03-06 17:27:40 +00:00