Git Product home page Git Product logo

Comments (14)

adil192 avatar adil192 commented on August 31, 2024 1

Unfortunately your laptop is telling Saber that your stylus is a finger, so I can't do much about it.

But after the stylus has been detected, it properly disables touch input +1

That's probably just hardware palm rejection.

from saber.

comcloudway avatar comcloudway commented on August 31, 2024 1

I have a question: Which protocol is your 2in1 laptop/pen using?
Mine is using MPP (Microsoft Pen Protocol or Windows Pen Protocol - known under both names)

Also, I'm running the flatpak under wayland.

Maybe this might be the same problem as seen on
LinwoodDev/Butterfly#238.
And thus related to flutter/flutter#63209.

I'm not sure, but maybe flutter/engine#38902 might solve this

from saber.

adil192 avatar adil192 commented on August 31, 2024

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.

from saber.

comcloudway avatar comcloudway commented on August 31, 2024

Oh sorry – I'll try it with sway(wayland) and awesome(Xorg) maybe it is just not working o
in Gnome

from saber.

comcloudway avatar comcloudway commented on August 31, 2024

I think I also did a bad job formulating the issue,
my stylus works (I can draw lines).

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,
connecting my hand with the point of the stylus was detected.
But after the stylus has been detected, it properly disables touch input 👍

from saber.

comcloudway avatar comcloudway commented on August 31, 2024

I haven't checked your code (the pubspec.yml shows a lot of dependencies, but I don't know what they are used for), but are you using a library to get the events?
Because if so, I might file an issue upstream, because both krita and xournalpp have no problem getting pressure readings.

from saber.

adil192 avatar adil192 commented on August 31, 2024

I haven't checked your code (the pubspec.yml shows a lot of dependencies, but I don't know what they are used for), but are you using a library to get the events? Because if so, I might file an issue upstream, because both krita and xournalpp have no problem getting pressure readings.

I'm just using a regular Listener widget. But I might have an idea now that could help with this

from saber.

adil192 avatar adil192 commented on August 31, 2024

If that patch works, you may still want to open an issue with flutter regarding styluses not being detected as a PointerDeviceKind.stylus
https://github.com/adil192/saber/blob/290387b8d78b51749aded242f23d526f83f28dfb/lib/components/canvas/canvas_gesture_detector.dart#L104-L112

from saber.

adil192 avatar adil192 commented on August 31, 2024

Please try out Linux Build #209

from saber.

comcloudway avatar comcloudway commented on August 31, 2024

I'm not sure if I installed it correctly (I did not uninstall the flatpak flathub beforehand):

  1. unzip the artifact
  2. flatpak install ./Saber.flatpak
  3. flatpak run com.adilhanney.saber

But it doesn't work.
Either way, I'm only able to use my stylus when the finger drawing feature is enabled.

from saber.

comcloudway avatar comcloudway commented on August 31, 2024

I just installed the xournal flatpak and pressure sensitivity is working properly.

So I'll probably have to file a flutter bug-report

from saber.

adil192 avatar adil192 commented on August 31, 2024

I have a question: Which protocol is your 2in1 laptop/pen using?
Mine is using MPP (Microsoft Pen Protocol or Windows Pen Protocol - known under both names)

Mine also uses MPP

I just installed the xournal flatpak and pressure sensitivity is working properly.

So I'll probably have to file a flutter bug-report

I don't believe Xournal uses flutter so it's probably best not to duplicate the issues you mentioned

from saber.

comcloudway avatar comcloudway commented on August 31, 2024

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)

from saber.

comcloudway avatar comcloudway commented on August 31, 2024

Update: I just installed Waydroid and inside of it I installed Saber via F-Droid, to see if my stylus works.
And indeed my stylus works properly, and I'm able to write without having the finger-draw feature enabled. Even pressure-sensitivity is working fine.

from saber.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.