From patchwork Sun May 8 09:17:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 765432 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p489IU6L005175 for ; Sun, 8 May 2011 09:18:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752890Ab1EHJR5 (ORCPT ); Sun, 8 May 2011 05:17:57 -0400 Received: from jacques.telenet-ops.be ([195.130.132.50]:39473 "EHLO jacques.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752922Ab1EHJRk (ORCPT ); Sun, 8 May 2011 05:17:40 -0400 Received: from ayla.of.borg ([84.193.80.148]) by jacques.telenet-ops.be with bizsmtp id gxHf1g0013C005g0JxHfTR; Sun, 08 May 2011 11:17:39 +0200 Received: from geert by ayla.of.borg with local (Exim 4.71) (envelope-from ) id 1QJ07P-0003FB-02; Sun, 08 May 2011 11:17:39 +0200 From: Geert Uytterhoeven To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, linux-m68k@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 3/3] input/atari: Fix mouse movement and button mapping Date: Sun, 8 May 2011 11:17:27 +0200 Message-Id: <1304846247-12401-4-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1304846247-12401-1-git-send-email-geert@linux-m68k.org> References: <1304846247-12401-1-git-send-email-geert@linux-m68k.org> 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.6 (demeter2.kernel.org [140.211.167.43]); Sun, 08 May 2011 09:18:30 +0000 (UTC) Up and down movements were reversed, left and right buttons were swapped. Signed-off-by: Geert Uytterhoeven --- drivers/input/mouse/atarimouse.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/input/mouse/atarimouse.c b/drivers/input/mouse/atarimouse.c index 16a9d0f..5c4a692 100644 --- a/drivers/input/mouse/atarimouse.c +++ b/drivers/input/mouse/atarimouse.c @@ -77,15 +77,15 @@ static void atamouse_interrupt(char *buf) #endif /* only relative events get here */ - dx = buf[1]; - dy = -buf[2]; + dx = buf[1]; + dy = buf[2]; input_report_rel(atamouse_dev, REL_X, dx); input_report_rel(atamouse_dev, REL_Y, dy); - input_report_key(atamouse_dev, BTN_LEFT, buttons & 0x1); + input_report_key(atamouse_dev, BTN_LEFT, buttons & 0x4); input_report_key(atamouse_dev, BTN_MIDDLE, buttons & 0x2); - input_report_key(atamouse_dev, BTN_RIGHT, buttons & 0x4); + input_report_key(atamouse_dev, BTN_RIGHT, buttons & 0x1); input_sync(atamouse_dev);