bk138 / multivnc

MultiVNC is a cross-platform Multicast-enabled VNC viewer based on LibVNCClient. The desktop client runs on Unix, Mac OS X and Windows. There also is an Android client.
GNU General Public License v3.0
472 stars 67 forks source link

SPen Button Input #109

Closed Frischid closed 3 years ago

Frischid commented 3 years ago

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?

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 commented 3 years ago

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

Frischid commented 3 years ago

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

2. 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 commented 3 years ago

Looks like no button press events are sent at all.