-
Notifications
You must be signed in to change notification settings - Fork 133
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
Linux stylus buttons #207
base: master
Are you sure you want to change the base?
Linux stylus buttons #207
Conversation
Now easytab on linux outputs info if stylus buttons were clicked or not
This PR responds to this issue: #177 |
Hey Maciej, thanks for the PR. There are some changes that would make the code better. Here's some stuff I did in my local branch:
These are two things that I still intend to look at -
My plan is to finish those two items and then merge your PR. Will probably get back to it next week, so feel free to do the same changes yourself and I can merge them. If not, just wait and I will post here when I finish it |
5fe10ab
to
6feb1a2
Compare
Added gui buttons and settings to keep information on what setting is chosen for both stylus buttons. Added logic to handle button events from the stylus based on the setting chosen in the gui radio buttons section.
6feb1a2
to
2c63384
Compare
Moved void function executing stylus button logic from sdl_milton.cc where it was a static util function, to milton.cc from where it is imported to sdl_milton through milton.h. Signed-off-by: Maciej Wieczór-Retman <maciej@maciej.localdomain>
I had some time so I tried reformatting my changes. Hopefully they are going to be more helpful than problematic :b
On the two other things
|
I added two entries in the settings menu to give stylus buttons some common functionalities. While being able to change the lower button bind to for example "switch to brush" it is still able to pan the canvas (this allows some function on the upper button and pan + return to brush on the lower one). All code running is inside #ifdef linux clauses as on windows stylus buttons functions are defined with the gui driver
All changes in the settings for the stylus are persistent. For now only functions that came to my mind were switch to brush and eraser and changing the size of the brush (as these are the ones I use the most probably)