From patchwork Fri Apr 9 21:58:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rafi Rubin X-Patchwork-Id: 91805 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o39LxGaE031284 for ; Fri, 9 Apr 2010 21:59:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753472Ab0DIV7P (ORCPT ); Fri, 9 Apr 2010 17:59:15 -0400 Received: from LION.SEAS.upenn.edu ([158.130.12.194]:36567 "EHLO lion.seas.upenn.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751122Ab0DIV7P (ORCPT ); Fri, 9 Apr 2010 17:59:15 -0400 Received: from localhost.localdomain (pool-173-59-64-206.phlapa.east.verizon.net [173.59.64.206]) (authenticated bits=0) by lion.seas.upenn.edu (8.13.6/8.13.6) with ESMTP id o39Lwubi011881 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 9 Apr 2010 17:59:01 -0400 From: Rafi Rubin To: linux-input@vger.kernel.org, jkosina@suse.cz Cc: micki@n-trig.com, dmitry.torokhov@gmail.com, chatty@enac.fr, Rafi Rubin Subject: [PATCH 1/2] Emit TOUCH with DOUBLETAP for single touch Date: Fri, 9 Apr 2010 17:58:25 -0400 Message-Id: <1270850306-4949-1-git-send-email-rafi@seas.upenn.edu> X-Mailer: git-send-email 1.7.0.4 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 (demeter.kernel.org [140.211.167.41]); Fri, 09 Apr 2010 21:59:17 +0000 (UTC) diff --git a/drivers/hid/hid-ntrig.c b/drivers/hid/hid-ntrig.c index a418f9e..58ba0d3 100644 --- a/drivers/hid/hid-ntrig.c +++ b/drivers/hid/hid-ntrig.c @@ -173,6 +173,8 @@ static int ntrig_event (struct hid_device *hid, struct hid_field *field, if (!nd->reading_mt) { input_report_key(input, BTN_TOOL_DOUBLETAP, (nd->confidence != 0)); + input_report_key(input, BTN_TOUCH, + (nd->confidence != 0)); input_event(input, EV_ABS, ABS_X, nd->x); input_event(input, EV_ABS, ABS_Y, nd->y); }