From patchwork Tue Dec 14 21:21:11 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chase Douglas X-Patchwork-Id: 411561 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBELNE88031795 for ; Tue, 14 Dec 2010 21:23:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760183Ab0LNVWa (ORCPT ); Tue, 14 Dec 2010 16:22:30 -0500 Received: from adelie.canonical.com ([91.189.90.139]:32832 "EHLO adelie.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760165Ab0LNVW3 (ORCPT ); Tue, 14 Dec 2010 16:22:29 -0500 Received: from hutte.canonical.com ([91.189.90.181]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1PScKJ-0007aO-82; Tue, 14 Dec 2010 21:22:27 +0000 Received: from [64.168.229.50] (helo=canonical.com) by hutte.canonical.com with esmtpsa (TLS-1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1PScKI-000815-IA; Tue, 14 Dec 2010 21:22:27 +0000 From: Chase Douglas To: Dmitry Torokhov , Henrik Rydberg Cc: Chris Bagwell , Peter Hutterer , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] Input: Add ABS_RECT_* legacy multitouch evdev codes Date: Tue, 14 Dec 2010 13:21:11 -0800 Message-Id: <1292361672-2581-4-git-send-email-chase.douglas@canonical.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1292361672-2581-1-git-send-email-chase.douglas@canonical.com> References: <1292361672-2581-1-git-send-email-chase.douglas@canonical.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 14 Dec 2010 21:23:15 +0000 (UTC) diff --git a/Documentation/input/evdev-codes.txt b/Documentation/input/evdev-codes.txt index 69c810f..65db20e 100644 --- a/Documentation/input/evdev-codes.txt +++ b/Documentation/input/evdev-codes.txt @@ -116,6 +116,16 @@ A few EV_ABS codes have special meanings: should only be used while the tool is in close proximity of the device. If the input device may be used freely in three dimensions, consider ABS_Z instead. +* ABS_RECT_MIN_X, ABS_RECT_MIN_Y, ABS_RECT_MAX_X, ABS_RECT_MAX_Y: + - Used to convey partial multitouch support. Some legacy device multitouch + coordinates are not accurate enough to be relied on directly. For example, + the device may give coordinates (X1, Y1) and (X2, Y2) for two touch points, + but in reality the touches are at (X1, Y2) and (X2, Y1). The maximum and + minimum axis values are accurate, so they may be used to provide a rectangle + bounding box for the touches. + The values for these codes are undefined unless two or more touches are + active, designated by BTN_TOOL_DOUBLETAP or higher order code being set to + 1. * ABS_MT_: - Used to describe multitouch input events. Please see multi-touch-protocol.txt for details. diff --git a/include/linux/input.h b/include/linux/input.h index cd0618c..5acdc60 100644 --- a/include/linux/input.h +++ b/include/linux/input.h @@ -719,6 +719,11 @@ struct input_keymap_entry { #define ABS_VOLUME 0x20 +#define ABS_RECT_MIN_X 0x21 +#define ABS_RECT_MIN_Y 0x22 +#define ABS_RECT_MAX_X 0x23 +#define ABS_RECT_MAX_Y 0x24 + #define ABS_MISC 0x28 #define ABS_MT_SLOT 0x2f /* MT slot being modified */