termux / termux-x11

Termux X11 add-on application.
https://termux.dev
GNU General Public License v3.0
1.96k stars 301 forks source link

DEX touchpad tap is not recognised as click #297

Closed 5A52 closed 1 year ago

5A52 commented 1 year ago

subj is making termux-x11 useless without phisical mouse on external monitor. Not sure, but this may help https://source.android.com/docs/core/interaction/input/touch-devices Also it is a good idea to use S-PEN always as a mouse even when termux-x11 emulates touchpad from touchscreen, and use s-pen button as a right click.

twaik commented 1 year ago

Can you please test latest version?

Rhys-T commented 1 year ago

Just tested the latest I can find, build #358. The S Pen seems to be completely ignored in all three input modes ('Trackpad', 'Simulated touchscreen', 'Touchscreen'), whether hovering or actually tapping. Normal touches are detected correctly as far as I can tell.

twaik commented 1 year ago

S-Pen support is planned.

Rhys-T commented 1 year ago

🤦 I probably shouldn't be allowed to operate GitHub this late at night. I saw the S Pen part of the original post, and somehow forgot that the main thing this issue was about was actually DeX. Apparently my brain just lumped them both into 'weird Samsung stuff'. (Also, I've bounced back and forth between this app and AVNC enough that I got them mixed up, and was thinking that Termux:X11 had already had some degree of S Pen support at some point.) Sorry for the noise.

twaik commented 1 year ago

I can make handle stylus as a mouse, but I do not really know how to handle it as a stylus. So it will only handle stylus hovering as mouse moving, stylus down/up as left button press/release and stylus button as a right button.

5A52 commented 1 year ago

I can make handle stylus as a mouse, but I do not really know how to handle it as a stylus. So it will only handle stylus hovering as mouse moving, stylus down/up as left button press/release and stylus button as a right button.

it is better then nothing, I mean no stylus support at all, BTW in XSDL it's done the same way.

5A52 commented 1 year ago

Can you please test latest version?

Single tap is now recognised as click, however two finger tap is not working.

twaik commented 1 year ago

Try again.

5A52 commented 1 year ago

Try again.

Right click still does not work in DEX touchpad mode. I found some aditional info about input devices, will PM you in a while.

twaik commented 1 year ago

It seems that the behavior of DEX varies across different device models and even different firmware versions of the same device.