Question about touch input support and events. #920
-
|
I've read the docs on input handling, and I noticed this part:
Does this mean touch input generates mouse events on RML elements, or should I translate the touch events I get from SDL3 to mouse events first ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
The The note from the documentation is mainly about the RML |
Beta Was this translation helpful? Give feedback.
The
ProcessTouch...functions do generate mouse events, indeed. If you only have a physical touch interface, you should be able to only have to use these methods rather than any of the mouse functions.The note from the documentation is mainly about the RML
touch...events, which we don't yet implement. I think even in HTML the mouse events are triggered from touch input. Although I'm not entirely sure, long-term at least we should align with how it works there.