diff mbox

[1/2] kvm tools: Fix some SDL keyboard translations

Message ID 1307652497-4629-1-git-send-email-levinsasha928@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Sasha Levin June 9, 2011, 8:48 p.m. UTC
This patch adds unmapped '<', '>', '|', '-', '+' and '='
which are quite useful in linux.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
---
 tools/kvm/ui/sdl.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
diff mbox

Patch

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,		/* <backspace> */
 
 	[24]		= 0x15,		/* q */
@@ -47,6 +48,8 @@  static u8 keymap[255] = {
 	[46]		= 0x4b,		/* l */
 
 	[50]		= 0x12,		/* <left shift> */
+	[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,		/* <right shift> */
 	[65]		= 0x29,		/* <space> */
 };