]> git.ipfire.org Git - thirdparty/systemd.git/commit
extras/input_id: Correctly identify touchpads
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 30 Nov 2009 22:03:05 +0000 (23:03 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Mon, 30 Nov 2009 22:03:05 +0000 (23:03 +0100)
commite0ead3ba820956648d103de2cac642f7097b519d
treefe13de92b22d361d397bd79aac3160253ae69d6a
parent6722e19ab1d379d7227450c402ee5d3c1c0e3889
extras/input_id: Correctly identify touchpads

BTN_TOUCH (as well as ABS_PRESSURE) is used not only by touchpads but
by touchscreens as well. The proper check for a touchpad is presence
of BTN_TOOL_FINGER and absence of BTN_TOOL_PEN (the latter to filter
out some tablets that use BTN_TOOL_FINGER).

Tablet matching should be on either BTN_TOOL_PEN or BTN_STYLUS.
extras/input_id/input_id.c