From patchwork Wed Mar 2 15:52:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Programmingkid X-Patchwork-Id: 8482731 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8B3429F2F0 for ; Wed, 2 Mar 2016 15:52:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F1BBD200D0 for ; Wed, 2 Mar 2016 15:52:20 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6020420221 for ; Wed, 2 Mar 2016 15:52:20 +0000 (UTC) Received: from localhost ([::1]:57220 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ab94V-0002mx-SH for patchwork-qemu-devel@patchwork.kernel.org; Wed, 02 Mar 2016 10:52:19 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ab94O-0002ms-K6 for qemu-devel@nongnu.org; Wed, 02 Mar 2016 10:52:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ab94L-0003ic-By for qemu-devel@nongnu.org; Wed, 02 Mar 2016 10:52:12 -0500 Received: from mail-io0-x229.google.com ([2607:f8b0:4001:c06::229]:36189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ab94L-0003iS-7G for qemu-devel@nongnu.org; Wed, 02 Mar 2016 10:52:09 -0500 Received: by mail-io0-x229.google.com with SMTP id l127so263842119iof.3 for ; Wed, 02 Mar 2016 07:52:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-transfer-encoding:subject:date:message-id:cc:to :mime-version; bh=nGfwHEK56UicMuYVHxwGpa03qDZns7TLP23fVub9jyE=; b=IoX4yWs2LTeYAjXjm9XRFNLvz/tG2s77yXysq0Y3N5HIHZpGXsrhztbc/SeswZ112k P3QclHoi/6XdPyZkK9qs2RHyH8ETwfn4cdZHznxKMHlOlCIxEYicFu7pwxEpEK+zj7jL a5Pi3oOOLe2lBtYJ9VAunlP87kX5O4MzxMP/BphiKSo3l1tQj1h6BiRDPkrSNyYhhyxv fu6MhYRtrHYUhxYvEAgQE911+zVfcajmmXOYxkzQ7o8ENb2ut8dqwnhkzsN32zhcBT4x rDYlBN6BfSo5Yf1L2G67Ydq2r2UR24rtyF1RyPcXdeVXhdGCqqhyebLnmRb1W86eAxOT VLsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-transfer-encoding:subject:date :message-id:cc:to:mime-version; bh=nGfwHEK56UicMuYVHxwGpa03qDZns7TLP23fVub9jyE=; b=MFAgHEVrEeMeEGVaLTk5PXsANsTeRuvH2F1k6hgQjG0a6OBytv7L3flrA1RVWTJbF/ Z+FsXs+vKJhNt/GtLTcNKtA1173a4lPVMudFQozKW+k8K02BUnifwVXlPr0rmTGMUDh3 1j9E3x0c+PZxjtlgUDq/EYaBTSUG890zkG4O2fbTQSsi6i+kxOG5vkeHpMHBMUWrcnYl 95b6Z7Ljr9hOKUUEY4Od51XxlRLmaT0Kx9YETEi9LVvLl/ZYsaptyfIFA4ULs+k/f3vw 1oj5aI8yluW35zbNo7THv+48aa7oBFEa647HiaLPcRDMRKRKqMYP2IjRuQTlYC++OhJD 5g9A== X-Gm-Message-State: AD7BkJIIrfMi0K8bW6zwzXi9KR/ES4aAXrwKnUbHTJj0YOc5hHaR82JmUS813CN9y5ym4A== X-Received: by 10.107.170.6 with SMTP id t6mr10637072ioe.71.1456933928622; Wed, 02 Mar 2016 07:52:08 -0800 (PST) Received: from [192.168.0.6] (d199-74-164-53.col.wideopenwest.com. [74.199.53.164]) by smtp.gmail.com with ESMTPSA id i9sm14892879ioo.38.2016.03.02.07.52.07 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Mar 2016 07:52:07 -0800 (PST) From: Programmingkid Date: Wed, 2 Mar 2016 10:52:05 -0500 Message-Id: <09EE2B64-B7B1-469B-AEE9-8250223DA109@gmail.com> To: Peter Maydell , Gerd Hoffmann Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4001:c06::229 Cc: qemu-devel qemu-devel Subject: [Qemu-devel] [PATCH] input-keymap.c: Add keypad equal and power keys X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the keypad equals and power keys to the qcode_to_number array. These keys are used on a Macintosh keyboard. Signed-off-by: John Arbuckle --- ui/input-keymap.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/ui/input-keymap.c b/ui/input-keymap.c index fd2c09d..8cffe62 100644 --- a/ui/input-keymap.c +++ b/ui/input-keymap.c @@ -98,6 +98,7 @@ static const int qcode_to_number[] = { [Q_KEY_CODE_KP_ENTER] = 0x9c, [Q_KEY_CODE_KP_DECIMAL] = 0x53, [Q_KEY_CODE_SYSRQ] = 0x54, + [Q_KEY_CODE_KP_EQUALS] = 0x55, [Q_KEY_CODE_KP_0] = 0x52, [Q_KEY_CODE_KP_1] = 0x4f, @@ -132,7 +133,7 @@ static const int qcode_to_number[] = { [Q_KEY_CODE_RO] = 0x73, [Q_KEY_CODE_KP_COMMA] = 0x7e, - + [Q_KEY_CODE_POWER] = 0x5e, [Q_KEY_CODE__MAX] = 0, };