[PATCH] evdev: handle touchscreens without BTN_TOUCH

Peter Korsgaard jacmet at sunsite.dk
Mon May 23 23:58:03 PDT 2011

>>>>> "Peter" == Peter Hutterer <peter.hutterer at who-t.net> writes:


 >> Yes, but all of this is in a has abs X/Y check. Keyboards presumably
 >> don't have absolute X/Y axes?

 Peter> you'd be surprised :)

 Peter> $> evtest /dev/input/event3
 Peter> Input driver version is 1.0.1
 Peter> Input device ID: bus 0x3 vendor 0x45e product 0xf1 version 0x111
 Peter> Input device name: "Microsft Microsoft Wireless Desktop Receiver 3.1A"

They can't even spell their own company name?

 Peter> Supported events:
 Peter>   Event type 0 (Sync)
 Peter>     Event type 1 (Key)
 Peter>     [omitting the keys for brevity]
 Peter>   Event type 2 (Relative)
 Peter>     Event code 0 (X)
 Peter>     Event code 1 (Y)
 Peter>     Event code 6 (HWheel)
 Peter>     Event code 7 (Dial)
 Peter>     Event code 8 (Wheel)
 Peter>     Event code 9 (Misc)
 Peter>     Event code 10 (?)
 Peter>     Event code 11 (?)
 Peter>   Event type 3 (Absolute)
 Peter>     Event code 0 (X)
 Peter>       Value      0
 Peter>       Min        0
 Peter>       Max      255
 Peter>     Event code 1 (Y)
 Peter>       Value      0
 Peter>       Min        0
 Peter>       Max      255
 Peter>   [omitting other axes for brevity]

Argh, what then? Check for devices with abs X/Y, no rel X/Y and
BTN_LEFT? Or do you have other crazy devices doing that as well?

Bye, Peter Korsgaard

More information about the xorg-devel mailing list