mirror of
https://github.com/games-on-whales/gst-wayland-display.git
synced 2026-10-15 12:51:57 +00:00
[PR #10] [MERGED] Touch event handling #14
Labels
No labels
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
games-on-whales/gst-wayland-display#14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/games-on-whales/gst-wayland-display/pull/10
Author: @camelcx
Created: 5/30/2025
Status: ✅ Merged
Merged: 6/3/2025
Merged by: @ABeltramo
Base:
stable← Head:touch-event-handling📝 Commits (10+)
43d5acfUpdate README.md5680c8cUpdate input.rsbf29c27Update input.rs6cee7e1Update input.rsbf3e116fix errors, now it compiles8127d23need to call add_touch()d7ae013revert unintended changes to README.md732f0feExpose touch related functions to c-bindingsd773202moonlight sends relative position for touch events, convert to logical location first in the c-binding first8c88b9brename the relative postion variables for readability📊 Changes
4 files changed (+226 additions, -1 deletions)
View changed files
📝
c-bindings/src/capi.rs(+30 -0)📝
wayland-display-core/src/comp/input.rs(+147 -1)📝
wayland-display-core/src/comp/mod.rs(+24 -0)📝
wayland-display-core/src/lib.rs(+25 -0)📄 Description
The current InputEvent handling do not handle touch related events. Here is my attempt to add the support, which I have tested on the wolf dev-container.
P.S. I found that the smithay anvil has more complete support to all kinds of events. Maybe worth porting the input_handler from there at some point. https://github.com/Smithay/smithay/blob/master/anvil/src/input_handler.rs
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.