-
-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stylus support: pressure & buttons #90
Comments
Hi, This functionality is already implemented (when finger drawing is disabled, you can still draw with a stylus). Your stylus+Linux is probably not supported with Flutter: I've also got a Dell 2-in-1 and mine is just detected as a finger rather than a stylus too. |
Oh sorry – I'll try it with sway(wayland) and awesome(Xorg) maybe it is just not working o |
I think I also did a bad job formulating the issue, But the eraser (both buttons) do not work (I don't necessarily care about pressure sensitivity). Additionally, when placing down my hand on the touchscreen before it detects the stylus, it draws a line, |
Unfortunately your laptop is telling Saber that your stylus is a finger, so I can't do much about it.
That's probably just hardware palm rejection. |
I haven't checked your code (the |
I'm just using a regular |
If that patch works, you may still want to open an issue with flutter regarding styluses not being detected as a |
Please try out Linux Build #209 |
I'm not sure if I installed it correctly (I did not uninstall the flatpak flathub beforehand):
But it doesn't work. |
I have a question: Which protocol is your 2in1 laptop/pen using? Also, I'm running the flatpak under wayland. Maybe this might be the same problem as seen on I'm not sure, but maybe flutter/engine#38902 might solve this |
I just installed the xournal flatpak and pressure sensitivity is working properly. So I'll probably have to file a flutter bug-report |
Mine also uses MPP
I don't believe Xournal uses flutter so it's probably best not to duplicate the issues you mentioned |
What I meant was that maybe Flatpak under Wayland doesn't send the correct stylus events (In that case, filing a bug report for flatpak would have made more sense) |
Update: I just installed Waydroid and inside of it I installed Saber via F-Droid, to see if my stylus works. |
I own a Dell 2-in-1 Laptop, running Alpine Linux (Gnome 43) and installed Saber as a flatpak.
When I disable
Finger drawing
I'm no longer able to use either mouse or pen,but with it enabled, both my pen and the touchscreen are being recognized.
Maybe adding a
Pen
mode, which only detects input from Wacom/Microsoft Pen Protocol pens.Additionally, handling the pen button events (eraser) might be a good idea.
EDIT: Input pens also provide pressure data
The text was updated successfully, but these errors were encountered: