[PR #10] [MERGED] Touch event handling #14

Closed
opened 2026-10-15 12:47:30 +00:00 by bsakaguchi · 0 comments
Owner

📋 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+)

  • 43d5acf Update README.md
  • 5680c8c Update input.rs
  • bf29c27 Update input.rs
  • 6cee7e1 Update input.rs
  • bf3e116 fix errors, now it compiles
  • 8127d23 need to call add_touch()
  • d7ae013 revert unintended changes to README.md
  • 732f0fe Expose touch related functions to c-bindings
  • d773202 moonlight sends relative position for touch events, convert to logical location first in the c-binding first
  • 8c88b9b rename 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.

## 📋 Pull Request Information **Original PR:** https://github.com/games-on-whales/gst-wayland-display/pull/10 **Author:** [@camelcx](https://github.com/camelcx) **Created:** 5/30/2025 **Status:** ✅ Merged **Merged:** 6/3/2025 **Merged by:** [@ABeltramo](https://github.com/ABeltramo) **Base:** `stable` ← **Head:** `touch-event-handling` --- ### 📝 Commits (10+) - [`43d5acf`](https://github.com/games-on-whales/gst-wayland-display/commit/43d5acf44703ce5f29d0a62f0febd335313ec6ba) Update README.md - [`5680c8c`](https://github.com/games-on-whales/gst-wayland-display/commit/5680c8cc4327fb9cedabc9e68052079a07e427d2) Update input.rs - [`bf29c27`](https://github.com/games-on-whales/gst-wayland-display/commit/bf29c2746e4fe5933db7b1abf5b605a47e00aaf9) Update input.rs - [`6cee7e1`](https://github.com/games-on-whales/gst-wayland-display/commit/6cee7e11f80f6cb0fa9f7ae5b3beec5e1ad1a51c) Update input.rs - [`bf3e116`](https://github.com/games-on-whales/gst-wayland-display/commit/bf3e116b4cca34744c7ad94bb84b884cc0f0c789) fix errors, now it compiles - [`8127d23`](https://github.com/games-on-whales/gst-wayland-display/commit/8127d23a09876e33fa8ad305e3673cde32e72471) need to call add_touch() - [`d7ae013`](https://github.com/games-on-whales/gst-wayland-display/commit/d7ae0134aff16dd1d4c60ba18c5f1061bfc2ec2f) revert unintended changes to README.md - [`732f0fe`](https://github.com/games-on-whales/gst-wayland-display/commit/732f0fed4a7a7a9578b8bb79375c104192043369) Expose touch related functions to c-bindings - [`d773202`](https://github.com/games-on-whales/gst-wayland-display/commit/d773202db8430eee0900f2be80b2bb1c4099da2b) moonlight sends relative position for touch events, convert to logical location first in the c-binding first - [`8c88b9b`](https://github.com/games-on-whales/gst-wayland-display/commit/8c88b9b09a6dceb7b961c1910bd0f5661a1785b2) rename the relative postion variables for readability ### 📊 Changes **4 files changed** (+226 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-15 12:47:30 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
games-on-whales/gst-wayland-display#14
No description provided.