Does touchpads have buttons?

Søren Hauberg hauberg at gmail.com
Mon Sep 29 04:29:35 PDT 2008


2008/9/29 Simon Thum <simon.thum at gmx.de>:
> Søren Hauberg wrote:
>>
>> 2008/9/29 Peter Hutterer <peter.hutterer at who-t.net>:
>>>
>>> I'd say that most if not all touchpads have a physical button too, so no
>>> button would probably be a good indicator for a touchscreen.
>>
>> Thanks! So, I guess something like the attached patch could be used to
>> handle the two types of devices differently.
>
> Sorry, I wanted to suggest that in reply but missed it. Anyway, be aware
> that as your patch is now, you're also triggering on absolute axes you can't
> handle/don't know. I'd consider that a regression.

Ahh, I (think I) see. The attached patch should handle this. It also
adds support for clicking the screen, and for my setup it works quite
well. I'm quite sure if the code is structured in the best way, as I
just put the code where ever it seemed to work.
  Also, I've hardcoded my own calibration parameters into the patch to
ease testing. This is obviously not usable in general. If I want to
use device properties (that's what I've been told they're called) to
set these parameters, how would I go about doing that?

Thanks,
Søren
-------------- next part --------------
A non-text attachment was scrubbed...
Name: evdev.patch4
Type: application/octet-stream
Size: 4802 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20080929/d648812b/attachment.obj>


More information about the xorg mailing list