Posts: 31
Threads: 8
Joined: Sep 2021
Reputation:
0
Hello,
I use a Lenovo M10 plus 3rg gen tablet with a Lenovo Active Pen 3.
Switching to annotation mode when using the pen works great, however, switching to eraser when pressing (one of) buttons does not work. The configuration (Stylus Button Tool) is set to eraser.
Anyway to troubleshoot this?
Thanks!
Posts: 13,372
Threads: 302
Joined: Apr 2012
Reputation:
236
It just depends on what is being reported in the Android framework for the motion events. The approach I'm currently using works well for Samsung S-Pens, but it may not work well for other types of pens like the one you are using. There are a few flags in the Android framework that I can check to see if a stylus button is pressed - we can experiment to see if that works properly with your device. If you are willing to test out a new build that checks those flags, let me know.
Mike
Posts: 13,372
Threads: 302
Joined: Apr 2012
Reputation:
236
I'm sure there are probably some test programs out there that will print out motion events. We would just need to see if the isButtonPressed returns true when passed BUTTON_STYLUS_PRIMARY or BUTTON_STYLUS_SECONDARY.
Mike
Posts: 13,372
Threads: 302
Joined: Apr 2012
Reputation:
236
I have sent an email to your forum email address with a link to the installer. Please let me know if your stylus button works with that build.
Thanks,
Mike
Posts: 31
Threads: 8
Joined: Sep 2021
Reputation:
0
04-07-2023, 08:14 PM
(This post was last modified: 04-07-2023, 08:19 PM by merijnb.)
Hi Mike,
Thanks so much. The build works as expected!. It does show (somewhat) the behavior as described in the help item where you configure the functionality for the button (the change is only noticed once you touch the screen).
The exact behavior is:
If I push the button, the mode is changed to erasing as soon as I touch the screen.
If I release the button, the mode is changed back to writing as soon as I remove the pen from the screen (buttondown vs buttonup).
So if I'm erasing (button pressed), I remove the pen from the screen and touch the screen again, the mode is still set to erasing. It's changed back to writing when I remove the pen from the screen again. Basically to switch from erasing to writing I have to tap the screen to force the change back.
Posts: 13,372
Threads: 302
Joined: Apr 2012
Reputation:
236
I've sent you another build to hopefully resolve that issue.
Thanks,
Mike
Posts: 31
Threads: 8
Joined: Sep 2021
Reputation:
0
Hi Mike, confirmes, this build resolved the last issue, thanks!
Any reason why I can't keep running this build for now? When do you expect this to be in the official release?
Posts: 13,372
Threads: 302
Joined: Apr 2012
Reputation:
236
You can keep running that build without any problems. It will be included with version 3.7.7 which I'm aiming to release this weekend to address bugs on older devices.
Mike