Multitouch events support - #180
Open
kunitoki wants to merge 6 commits into
Open
Conversation
added 5 commits
August 28, 2026 00:58
# Conflicts: # modules/yup_gui/native/yup_Windowing_sdl.h # tests/yup_gui/yup_Component.cpp
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #180 +/- ##
==========================================
+ Coverage 81.53% 81.61% +0.08%
==========================================
Files 796 796
Lines 82695 82713 +18
==========================================
+ Hits 67425 67508 +83
+ Misses 15270 15205 -65
... and 7 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
# Conflicts: # examples/graphics/source/main.cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces comprehensive multitouch support across all platforms with touch hardware, improves the user experience for touch and mouse interactions, and adds a new example demonstrating these capabilities. The changes affect the core event system, UI documentation, and the graphics examples.
Multitouch support and event system enhancements:
mouseDown,mouseDrag,mouseUp) with a stable touch index and pressure information, allowing for independent tracking of multiple fingers. Touch pressure is now accessible viaMouseEvent::getPressure(), and each finger is hit-tested independently. SDL's synthetic touch-to-mouse events are disabled to prevent duplicate event delivery. (CHANGELOG.md,yup_MouseEvent.cpp) [1] [2] [3] [4] [5] [6]UI improvements and bug fixes:
Slidercomponent could remain in a hover state after a touch drag if the pointer was released outside its bounds;mouseUpnow directly clears the hover state when appropriate. (CHANGELOG.md)Documentation and examples:
component-basics.md)TouchTrails.h,main.cpp) [1] [2] [3]