Skip to content
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

SPen Button Input #109

Closed
Frischid opened this issue Jan 13, 2021 · 3 comments · Fixed by #118
Closed

SPen Button Input #109

Frischid opened this issue Jan 13, 2021 · 3 comments · Fixed by #118

Comments

@Frischid
Copy link
Contributor

If you'd like to put out an incentive for implementing this feature, you can do so at https://issuehunt.io/r/bk138/multivnc?tab=idle

Is your feature request about the Desktop Multivnc or the Mobile MultiVNC?

  • Desktop (wxWidgets) or Mobile (Android): Mobile
  • If Mobile, installed from Play Store or F-Droid: F-Droid

Is your feature request related to a problem? Please describe.

I want to use my S-Pen (Samsung Galaxy Tab S4) to write on Desktop over VNC. Writing works very good but it would be great to have the Button on the pen also available for Desktop. Ex. push the button and draw a stroke to erase sth. I am running xournal on my Desktop.
Describe the solution you'd like

Ex. push the button and draw a stroke to erase sth. I am running xournal on my Desktop.

Describe alternatives you've considered

Always click trough the menu of xournal to get an eraser. Or through the toolbar.
Additional context

@bk138
Copy link
Owner

bk138 commented Jan 13, 2021

Hard to implement without the hardware, you know. What does xev on the remote end output when pressing that button?

@Frischid
Copy link
Contributor Author

I get the following output:

  1. Tab on screen with button pressed:
KeymapNotify event, serial 29, synthetic NO, window 0x0,
    keys:  79  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

MotionNotify event, serial 29, synthetic NO, window 0xa00001,
    root 0x4f, subw 0x0, time 7244546, (110,226), root:(300,316),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 29, synthetic NO, window 0xa00001,
    root 0x4f, subw 0x0, time 7244558, (110,223), root:(300,313),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 29, synthetic NO, window 0xa00001,
    root 0x4f, subw 0x0, time 7244573, (109,223), root:(299,313),
    state 0x0, is_hint 0, same_screen YES
  1. Tab on screen with button not pressed
KeymapNotify event, serial 29, synthetic NO, window 0x0,
    keys:  79  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

ButtonPress event, serial 29, synthetic NO, window 0xa00001,
    root 0x4f, subw 0x0, time 7396986, (102,260), root:(292,350),
    state 0x0, button 1, same_screen YES

MotionNotify event, serial 29, synthetic NO, window 0xa00001,
    root 0x4f, subw 0x0, time 7397000, (104,259), root:(294,349),
    state 0x100, is_hint 0, same_screen YES

MotionNotify event, serial 29, synthetic NO, window 0xa00001,
    root 0x4f, subw 0x0, time 7397041, (103,259), root:(293,349),
    state 0x100, is_hint 0, same_screen YES

When releasing or pressing the button while moving on the screen, nothing changes but the coordinates.
When pressing the button while hovering over the screen, the mousepointer stops following the pen.

I'm currently very busy, I will take a deeper look in a few weeks, sorry for that.

@bk138
Copy link
Owner

bk138 commented Jan 17, 2021

Looks like no button press events are sent at all.

@bk138 bk138 closed this as completed in #118 Feb 8, 2021
bk138 pushed a commit that referenced this issue Feb 8, 2021
Hardwire the SPen button to right mouse button.

Closes #109
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants