mouse icon indicating copy to clipboard operation
mouse copied to clipboard

Touchpad issues on Linux

Open linux-man opened this issue 4 years ago • 2 comments

I'm on a laptop, and found that the touchpad move event are associated with EV_ABS, so to receive "MoveEvent" I had to change listen(queue) at _nixmouse.py:

elif type == EV_REL:

to

elif type in (EV_REL, EV_ABS):

The coordinates look fine.

What looks difficult is to detect which button was pressed (all clicks are "LEFT"), 2-fingers scroll and discriminate the "moving" touch from the "click" touch. Can that info be hidden on EV_MSC events?

linux-man avatar Dec 09 '21 01:12 linux-man

are you deal with the issue? I have the same problem, my process only receive EV_ABS, I cann't use EV_REL to get input_event

changeso avatar Nov 25 '23 07:11 changeso

No. That's why I decided to use different libraries, the other being pyinput. Have a look at https://github.com/linux-man/inmon.

linux-man avatar Nov 25 '23 16:11 linux-man