From patchwork Thu Jun 9 20:48:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Levin X-Patchwork-Id: 862662 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p58KmVHL005100 for ; Wed, 8 Jun 2011 20:48:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755017Ab1FHUs1 (ORCPT ); Wed, 8 Jun 2011 16:48:27 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=b82X7Xsf9CZJ6a5O4JJe7LXvf1vr765HVnY5ZhpTI6E=; b=R9x1VdY5RcL6SZ9OeO6i+D2dG82gkaSFgG97l2qM0EregKfJjuCqPMS9EDv92JPVvi XGVGHEw5RRGeN8MkWANLb4P7fUEndsx0zZvBqtdQJu8IyTyXt65hAhoh8WjAwkra46Rf wwSvJl02FkAJPxY8XxN/2WTI52WvIpKMu02sc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=nUsJKBusv8BLp+1gdSzOH5UEpsqFAmg0jV+HuqAYE+uU27o0mXBzvipnfxZyy92MLl 9RNUDpr0fUvcmxfSr8f0F/UtbWuW3ABPyq1m/RuQ0qSdIkaP/I67qoRdspOj9SIwoOSU v1kUp7wOMEI0lc3wnMYt5RSlpMx3V9cou6rUQ= Received: by 10.224.9.77 with SMTP id k13mr4254043qak.1.1307566106304; Wed, 08 Jun 2011 13:48:26 -0700 (PDT) Received: from localhost.localdomain (cpe-74-68-106-119.nyc.res.rr.com [74.68.106.119]) by mx.google.com with ESMTPS id mz7sm698982qcb.23.2011.06.08.13.48.24 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 08 Jun 2011 13:48:25 -0700 (PDT) From: Sasha Levin To: penberg@kernel.org Cc: kvm@vger.kernel.org, mingo@elte.hu, asias.hejun@gmail.com, gorcunov@gmail.com, prasadjoshi124@gmail.com, 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> X-Mailer: git-send-email 1.7.5.3 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@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]); Wed, 08 Jun 2011 20:48:31 +0000 (UTC) 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, /* */ };