No Stylus Support, stylus is treated as a mouse

• Apr 15, 2019 - 19:39
Reported version
3.0
Type
Ergonomical (UX)
Frequency
Few
Severity
S5 - Suggestion
Reproducibility
Always
Status
GitHub issue
Regression
No
Workaround
No
Project

Currently a stylus is treated like a mouse which creates some issues.
-Your hand when resting on the tablet can inadvertently and notes to the score.
-Switching between Note Entry and Normal Mode is cumbersome to simply move a note to a new pitch
-Erase mode on stylus is not supported
-Stylus buttons are handled as mouse buttons


Comments

We must add a event handle for the tablet.
I was thinking of adding it to events.cpp.

I could just copy what ever logic is the same on mousepress, mousemove, and mouserelease events into the tablet events (even maybe have tablet events live in its one tabletevents.cpp) so it will have minimal impact on the current code.

I would rather create helper functions that both mouse and tablet events call so that if something changes we only have to change it in one spot.

Anyone have preference to either?
Thoughts?

Thanks

I would rather create helper functions that both mouse and tablet events call so that if something changes we only have to change it in one spot.

This is the way to go, in my opinion. I always prefer reusing code rather than copying code.

In reply to by Kryztofor

Hi Kryztofor ! I wonder if there are any news regarding support for stylus, now that 5 years have passed since your post. I have an unused Samsung tab 4 and I have been fantisizing with installing linux on it and running musescore. Stylus support would be of key importance.