WIP: add basic touch support - #226
Conversation
|
Hey @androw, That's great! So for the mouse Rio uses Lines 227 to 250 in 65ffe90 With this Lines 1399 to 1433 in 65ffe90 But I think for your case, you will need to use Note the mouse has a state called ClickState, it can be a click, double or triple. The click state is defined here https://github.com/raphamorim/rio/blob/main/rio/src/sequencer.rs#L438-L474 I think would be worth to make touch reuse the clickState though, then doesn't need to duplicate logic. Keep in minde that |
|
If someone want to test and add feedback. We should have some basics working on X11 (for Wayland we need to wait for winit next version):
|
|
What version of Winit is needed, more specifically what commit? Because Rio uses the latest beta ver of Winit. |
We need this commit rust-windowing/winit@c2ed160 which is not included in latest beta build. |
|
@androw since we are already using the beta, I wouldn’t mind add winit dependency pointing to a git hash for the next build. in my experience Winit releases can take a while to wrap up (I know they are also considering a major refactor of how the event loop will work) |
|
That's seems like a solid idea tbh, could take advantage of some new features winit too if you point to the latest git hashes. Of course, it'll need proper testing, which I'll be happy to help with :) |
|
@androw just a fyi, updated to winit 0.29.2 in main branch |
|
Working on Wayland without patch now! |
|
Niceee! thanks @androw let me know anything can help with :D and great job with it |
b928ed6 to
0d3fbb5
Compare
|
What the status on this? |
|
I've updated the branch and selection is still not working. I didn't have time to work on it and won't be able for some times. |
|
No stress @androw, take your time on it 🙏 |
Oh, I was under the impression that it was ready to review, sorry! Should mark it as a draft PR too. |
|
No stress @nyabinary 🙏 |
|
@raphamorim i do not find what's wrong with my way of emulating a click. Can you have a look when you have some time? |
Of course, you are talking about the CI error? |
|
No (I haven't check the CI error yet). and the following for releasing the click It used to work but it isn't (for example selection doesn't) since some changes on the main branch. |
Got it! Will take a look once I wrap the sixel protocol 🙏 |
#225
First work on it
Need winit upgrade because of rust-windowing/winit#3035
@raphamorim can you point me to the correct way to send click and cursor move event please?