Skip to content

Implement virtio-multitouch and enable GTK3 to use it

Sergio Lopez qemu-devel 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest6 patches 0 repliesNew
  2. v46 patches 1 replySuperseded
  3. v36 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v26 patches5 repliesSuperseded
v14 patches6 repliesSuperseded

Changes in v5 from the cover letter

- Minor improvements to the documentation in qapi/ui.json (Markus).
- Rebase and collect R-b.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6virtio-input: generalize virtio_input_key_config()hw/input/virtio-input-hid.c+21 -170 replies
2/6ui: add the infrastructure to support MT eventsinclude/ui/input.h qapi/ui.json replay/replay-input.c +2 more+87 -90 replies
3/6virtio-input: add a virtio-mulitouch devicehw/input/virtio-input-hid.c include/hw/virtio/virtio-input.h+120 -70 replies
4/6virtio-input-pci: add virtio-multitouch-pcihw/virtio/virtio-input-pci.c+21 -40 replies
5/6ui: add helpers for virtio-multitouch eventsinclude/ui/input.h ui/input.c+41 -00 replies
6/6ui/gtk: enable backend to send multi-touch eventsui/gtk.c+92 -00 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchMarc-André LureauMarkus Armbruster
1/6R-b
2/6R-b R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/6] Implement virtio-multitouch and enable GTK3 to use it

This series adds a virtio-multitouch device to the family of devices emulated by virtio-input implementing the Multi-touch protocol as descripted here:

https://www.kernel.org/doc/html/latest/input/multi-touch-protocol.html?highlight=multi+touch

It also extends the GTK UI backend to be able to receive multi-touch events and transpose them to a guest, so the latter can recognize them as gestures when appropriate.

An example of this in action can be seen here:

https://fosstodon.org/@slp/109545849296546767

Since v4:
- Minor improvements to the documentation in qapi/ui.json (Markus).
- Rebase and collect R-b.

Since v3:
- Use MultiTouch instead of Multitouch and multi-touch instead of multitouch in qapi/ui.json (Markus).
- Adopt documentation suggestions by Markus to qapi/ui.json.
- Adapt the references to automatically generated structs after the spelling change.

Since v2:
- Fix InputMultitouchEvent doc in qapi/ui.json (Marc-André).
- Use warn_report() instead of fprintf() in gtk.c (Marc-André).
- Rebase and collect R-b.

Since v1:
- Split 0002 patch to implement ui, virtio-input-hid and virtio-input-pci changes in different patches (Marc-André).
- Fix versioning in qapi/ui.json (Marc-André).
- Print a warning if touch->sequence >= INPUT_EVENT_SLOTS_MAX (Marc-André).
- Only send SYN_REPORT once, if needed (Marc-André).
- Rebase and collect R-b.

Sergio Lopez (6):
virtio-input: generalize virtio_input_key_config()
ui: add the infrastructure to support MT events
virtio-input: add a virtio-mulitouch device
virtio-input-pci: add virtio-multitouch-pci
ui: add helpers for virtio-multitouch events ui/gtk: enable backend to send multi-touch events

 hw/input/virtio-input-hid.c      | 156 +++++++++++++++++++++++++++----
 hw/virtio/virtio-input-pci.c     |  25 ++++-
 include/hw/virtio/virtio-input.h |   9 +-
 include/ui/input.h               |   8 ++
 qapi/ui.json                     |  68 ++++++++++++--
 replay/replay-input.c            |  18 ++++
 ui/gtk.c                         |  92 ++++++++++++++++++
 ui/input.c                       |  42 +++++++++
 ui/trace-events                  |   1 +
 9 files changed, 382 insertions(+), 37 deletions(-)
Signature · 1 line
2.38.1