unoplatform / uno

Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.
https://platform.uno
Apache License 2.0
8.6k stars 693 forks source link

[Skia.X11] Multi-Touch support #16804

Open lindexi opened 1 month ago

lindexi commented 1 month ago

What would you like to be added

Adding the multi-touch support to Uno.UI.Runtime.Skia.X11

Why is this needed

See https://github.com/unoplatform/uno/issues/4309

For which platform

Skia (Linux X11)

Anything else we need to know?

We can use XI2 to get the touch event.

lindexi commented 1 month ago

I'm delighted to be involved in the development of this feature, and I'm also quite familiar with the touch and ink modules of X11.

And you can find my raw X11 demo code in https://github.com/lindexi/lindexi_gd/tree/43711cd55b54616e0d75a70d61dec5591151ad2b/BujeeberehemnaNurgacolarje

And you can find my PR for Avalonia about X11 touch in https://github.com/AvaloniaUI/Avalonia/pull/15283

ramezgerges commented 1 month ago

Thanks for your interest, @lindexi! This will probably need to follow #15799 which brings XI2 support in general.

lindexi commented 1 month ago

Thank you @ramezgerges . I reviewed your code and find it can easy to add the multi touch support.