From: Sasha Levin Subject: [PATCH 1/2] kvm tools: Fix some SDL keyboard translations Date: Thu, 9 Jun 2011 16:48:16 -0400 Message-ID: <1307652497-4629-1-git-send-email-levinsasha928@gmail.com> Cc: kvm@vger.kernel.org, mingo@elte.hu, asias.hejun@gmail.com, gorcunov@gmail.com, prasadjoshi124@gmail.com, Sasha Levin To: penberg@kernel.org Return-path: Received: from mail-qy0-f181.google.com ([209.85.216.181]:39791 "EHLO mail-qy0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754891Ab1FHUs1 (ORCPT ); Wed, 8 Jun 2011 16:48:27 -0400 Received: by qyg14 with SMTP id 14so495123qyg.19 for ; Wed, 08 Jun 2011 13:48:26 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: This patch adds unmapped '<', '>', '|', '-', '+' and '=' which are quite useful in linux. Signed-off-by: Sasha Levin --- tools/kvm/ui/sdl.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/kvm/ui/sdl.c b/tools/kvm/ui/sdl.c index 2e7c395..30fd511 100644 --- a/tools/kvm/ui/sdl.c +++ b/tools/kvm/ui/sdl.c @@ -20,7 +20,8 @@ static u8 keymap[255] = { [17] = 0x3e, /* 8 */ [18] = 0x46, /* 9 */ [19] = 0x45, /* 9 */ - + [20] = 0x4e, /* - */ + [21] = 0x55, /* + */ [22] = 0x66, /* */ [24] = 0x15, /* q */ @@ -47,6 +48,8 @@ static u8 keymap[255] = { [46] = 0x4b, /* l */ [50] = 0x12, /* */ + [51] = 0x5d, /* | */ + [52] = 0x1a, /* z */ [53] = 0x22, /* x */ @@ -55,8 +58,9 @@ static u8 keymap[255] = { [56] = 0x32, /* b */ [57] = 0x31, /* n */ [58] = 0x3a, /* m */ - - [61] = 0x4e, /* - */ + [59] = 0x41, /* < */ + [60] = 0x49, /* > */ + [61] = 0x4a, /* / */ [62] = 0x59, /* */ [65] = 0x29, /* */ }; -- 1.7.5.3