No Stylus Support, stylus is treated as a mouse

• Apr 15, 2019 - 19:39
Reported version
3.0
Type
Ergonomical (UX)
Frequency
Once
Severity
S5 - Suggestion
Reproducibility
Always
Status
active
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.