From be106d8a7d3ea41d157c4ca33efc4e2152e24a23 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 22 Mar 2012 00:16:36 -0700 Subject: [PATCH] Finish base keymap. --- src/rdp_keymap_base.c | 69 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/src/rdp_keymap_base.c b/src/rdp_keymap_base.c index 4f24b70..59ed68e 100644 --- a/src/rdp_keymap_base.c +++ b/src/rdp_keymap_base.c @@ -51,6 +51,16 @@ static guac_rdp_keysym_desc __guac_rdp_keymap_mapping[] = { /* Return */ { .keysym = 0xff0d, .scancode = 0x1C }, + /* Scroll_Lock */ + { .keysym = 0xff14, .scancode = 0x46 }, + + /* Escape */ + { .keysym = 0xff1b, .scancode = 0x01 }, + + /* Home */ + { .keysym = 0xff50, .scancode = 0x47, + .flags = KBD_FLAGS_EXTENDED }, + /* Left */ { .keysym = 0xff51, .scancode = 0x4B, .flags = KBD_FLAGS_EXTENDED }, @@ -67,10 +77,29 @@ static guac_rdp_keysym_desc __guac_rdp_keymap_mapping[] = { { .keysym = 0xff54, .scancode = 0x50, .flags = KBD_FLAGS_EXTENDED }, + /* Page_Up */ + { .keysym = 0xff55, .scancode = 0x49, + .flags = KBD_FLAGS_EXTENDED }, + /* Menu */ { .keysym = 0xff67, .scancode = 0x5D, .flags = KBD_FLAGS_EXTENDED }, + /* Page_Down */ + { .keysym = 0xff56, .scancode = 0x51, + .flags = KBD_FLAGS_EXTENDED }, + + /* End */ + { .keysym = 0xff57, .scancode = 0x4F, + .flags = KBD_FLAGS_EXTENDED }, + + /* Insert */ + { .keysym = 0xff63, .scancode = 0x52, + .flags = KBD_FLAGS_EXTENDED }, + + /* Num_Lock */ + { .keysym = 0xff7f, .scancode = 0x45 }, + /* KP_0 */ { .keysym = 0xffb0, .scancode = 0x52 }, @@ -101,6 +130,42 @@ static guac_rdp_keysym_desc __guac_rdp_keymap_mapping[] = { /* KP_9 */ { .keysym = 0xffb9, .scancode = 0x49 }, + /* F1 */ + { .keysym = 0xffbe, .scancode = 0x3B }, + + /* F2 */ + { .keysym = 0xffbf, .scancode = 0x3C }, + + /* F3 */ + { .keysym = 0xffc0, .scancode = 0x3D }, + + /* F4 */ + { .keysym = 0xffc1, .scancode = 0x3E }, + + /* F5 */ + { .keysym = 0xffc2, .scancode = 0x3F }, + + /* F6 */ + { .keysym = 0xffc3, .scancode = 0x40 }, + + /* F7 */ + { .keysym = 0xffc4, .scancode = 0x41 }, + + /* F8 */ + { .keysym = 0xffc5, .scancode = 0x42 }, + + /* F9 */ + { .keysym = 0xffc6, .scancode = 0x43 }, + + /* F10 */ + { .keysym = 0xffc7, .scancode = 0x44 }, + + /* F11 */ + { .keysym = 0xffc8, .scancode = 0x57 }, + + /* F12 */ + { .keysym = 0xffc9, .scancode = 0x58 }, + /* Shift_L */ { .keysym = 0xffe1, .scancode = 0x2A }, @@ -113,6 +178,10 @@ static guac_rdp_keysym_desc __guac_rdp_keymap_mapping[] = { /* Control_R */ { .keysym = 0xffe4, .scancode = 0x1D }, + /* Caps_Lock */ + { .keysym = 0xffe5, .scancode = 0x3A, + .flags = KBD_FLAGS_EXTENDED }, + /* Alt_L */ { .keysym = 0xffe9, .scancode = 0x38 }, -- 1.7.10.4