Merge keymap source provided by Trac use on #141.
This commit is contained in:
parent
9b00ce9f28
commit
b736f13d32
@ -55,12 +55,12 @@ static guac_rdp_keysym_desc __guac_rdp_keymap_mapping[] = {
|
|||||||
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
/* quotedbl */
|
/* quotedbl */
|
||||||
{ .keysym = 0x0022, .scancode = 0x28,
|
{ .keysym = 0x0022, .scancode = 0x03,
|
||||||
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
/* numbersign */
|
/* numbersign */
|
||||||
{ .keysym = 0x0023, .scancode = 0x04,
|
{ .keysym = 0x0023, .scancode = 0x2b,
|
||||||
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
||||||
|
|
||||||
/* dollar */
|
/* dollar */
|
||||||
{ .keysym = 0x0024, .scancode = 0x05,
|
{ .keysym = 0x0024, .scancode = 0x05,
|
||||||
@ -71,34 +71,35 @@ static guac_rdp_keysym_desc __guac_rdp_keymap_mapping[] = {
|
|||||||
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
/* ampersand */
|
/* ampersand */
|
||||||
{ .keysym = 0x0026, .scancode = 0x08,
|
{ .keysym = 0x0026, .scancode = 0x07,
|
||||||
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
/* quoteright */
|
/* quoteright */
|
||||||
{ .keysym = 0x0027, .scancode = 0x28 },
|
|
||||||
|
{ .keysym = 0x0027, .scancode = 0x2b },
|
||||||
|
|
||||||
/* parenleft */
|
/* parenleft */
|
||||||
{ .keysym = 0x0028, .scancode = 0x0A,
|
{ .keysym = 0x0028, .scancode = 0x09,
|
||||||
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
/* parenright */
|
/* parenright */
|
||||||
{ .keysym = 0x0029, .scancode = 0x0B,
|
{ .keysym = 0x0029, .scancode = 0x0A,
|
||||||
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
/* asterisk */
|
/* asterisk */
|
||||||
{ .keysym = 0x002a, .scancode = 0x09,
|
{ .keysym = 0x002a, .scancode = 0x1b,
|
||||||
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
/* plus */
|
/* plus */
|
||||||
{ .keysym = 0x002b, .scancode = 0x0D,
|
{ .keysym = 0x002b, .scancode = 0x1b,
|
||||||
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
||||||
|
|
||||||
/* comma */
|
/* comma */
|
||||||
{ .keysym = 0x002c, .scancode = 0x33,
|
{ .keysym = 0x002c, .scancode = 0x33,
|
||||||
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
||||||
|
|
||||||
/* minus */
|
/* minus */
|
||||||
{ .keysym = 0x002d, .scancode = 0x0C,
|
{ .keysym = 0x002d, .scancode = 0x35,
|
||||||
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
||||||
|
|
||||||
/* period */
|
/* period */
|
||||||
@ -106,8 +107,8 @@ static guac_rdp_keysym_desc __guac_rdp_keymap_mapping[] = {
|
|||||||
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
||||||
|
|
||||||
/* slash */
|
/* slash */
|
||||||
{ .keysym = 0x002f, .scancode = 0x35,
|
{ .keysym = 0x002f, .scancode = 0x08,
|
||||||
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
/* 0 */
|
/* 0 */
|
||||||
{ .keysym = 0x0030, .scancode = 0x0B,
|
{ .keysym = 0x0030, .scancode = 0x0B,
|
||||||
@ -150,27 +151,27 @@ static guac_rdp_keysym_desc __guac_rdp_keymap_mapping[] = {
|
|||||||
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
||||||
|
|
||||||
/* colon */
|
/* colon */
|
||||||
{ .keysym = 0x003a, .scancode = 0x27,
|
{ .keysym = 0x003a, .scancode = 0x34,
|
||||||
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
/* semicolon */
|
/* semicolon */
|
||||||
{ .keysym = 0x003b, .scancode = 0x27,
|
{ .keysym = 0x003b, .scancode = 0x33,
|
||||||
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
|
||||||
|
|
||||||
/* less */
|
|
||||||
{ .keysym = 0x003c, .scancode = 0x33,
|
|
||||||
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
/* equal */
|
/* less ??*/
|
||||||
{ .keysym = 0x003d, .scancode = 0x0D,
|
{ .keysym = 0x003c, .scancode = 0x56,
|
||||||
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
||||||
|
|
||||||
/* greater */
|
/* equal */
|
||||||
{ .keysym = 0x003e, .scancode = 0x34,
|
{ .keysym = 0x003d, .scancode = 0x0B,
|
||||||
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
|
/* greater ??*/
|
||||||
|
{ .keysym = 0x003e, .scancode = 0x56,
|
||||||
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
/* question */
|
/* question */
|
||||||
{ .keysym = 0x003f, .scancode = 0x35,
|
{ .keysym = 0x003f, .scancode = 0x0c,
|
||||||
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
/* at */
|
/* at */
|
||||||
@ -274,35 +275,35 @@ static guac_rdp_keysym_desc __guac_rdp_keymap_mapping[] = {
|
|||||||
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
/* Y */
|
/* Y */
|
||||||
{ .keysym = 0x0059, .scancode = 0x15,
|
{ .keysym = 0x0059, .scancode = 0x2c,
|
||||||
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
/* Z */
|
/* Z */
|
||||||
{ .keysym = 0x005a, .scancode = 0x2C,
|
{ .keysym = 0x005a, .scancode = 0x15,
|
||||||
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
/* bracketleft */
|
/* bracketleft */
|
||||||
{ .keysym = 0x005b, .scancode = 0x1A,
|
{ .keysym = 0x005b, .scancode = 0x09,
|
||||||
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
||||||
|
|
||||||
/* backslash */
|
/* backslash */
|
||||||
{ .keysym = 0x005c, .scancode = 0x2B,
|
{ .keysym = 0x005c, .scancode = 0x0c,
|
||||||
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
||||||
|
|
||||||
/* bracketright */
|
/* bracketright */
|
||||||
{ .keysym = 0x005d, .scancode = 0x1B,
|
{ .keysym = 0x005d, .scancode = 0x0a,
|
||||||
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
||||||
|
|
||||||
/* asciicircum */
|
/* asciicircum */
|
||||||
{ .keysym = 0x005e, .scancode = 0x07,
|
{ .keysym = 0x005e, .scancode = 0x29,
|
||||||
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
/* underscore */
|
/* underscore */
|
||||||
{ .keysym = 0x005f, .scancode = 0x0C,
|
{ .keysym = 0x005f, .scancode = 0x35,
|
||||||
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
/* quoteleft */
|
/* quoteleft */
|
||||||
{ .keysym = 0x0060, .scancode = 0x29,
|
{ .keysym = 0x0060, .scancode = 0x2f,
|
||||||
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
||||||
|
|
||||||
/* a */
|
/* a */
|
||||||
@ -402,27 +403,57 @@ static guac_rdp_keysym_desc __guac_rdp_keymap_mapping[] = {
|
|||||||
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
||||||
|
|
||||||
/* y */
|
/* y */
|
||||||
{ .keysym = 0x0079, .scancode = 0x15,
|
{ .keysym = 0x0079, .scancode = 0x2c,
|
||||||
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
||||||
|
|
||||||
/* z */
|
/* z */
|
||||||
{ .keysym = 0x007a, .scancode = 0x2C,
|
{ .keysym = 0x007a, .scancode = 0x15,
|
||||||
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
||||||
|
|
||||||
|
/* german umlauts ä*/
|
||||||
|
|
||||||
|
{ .keysym = 0x00e4, .scancode = 0x28,
|
||||||
|
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
||||||
|
|
||||||
|
{ .keysym = 0x00c4, .scancode = 0x28,
|
||||||
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
|
/* ö */
|
||||||
|
{ .keysym = 0x00f6, .scancode = 0x27,
|
||||||
|
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
||||||
|
|
||||||
|
{ .keysym = 0x00d6, .scancode = 0x27,
|
||||||
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
|
/* ü */
|
||||||
|
{ .keysym = 0x00fc, .scancode = 0x1a,
|
||||||
|
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
||||||
|
|
||||||
|
{ .keysym = 0x00dc, .scancode = 0x1a,
|
||||||
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
|
/* ß */
|
||||||
|
{ .keysym = 0x00df, .scancode = 0x0c,
|
||||||
|
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* braceleft */
|
/* braceleft */
|
||||||
{ .keysym = 0x007b, .scancode = 0x1A,
|
{ .keysym = 0x007b, .scancode = 0x08,
|
||||||
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
/* bar */
|
/* bar */
|
||||||
{ .keysym = 0x007c, .scancode = 0x2B,
|
{ .keysym = 0x007c, .scancode = 0x2B,
|
||||||
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* braceright */
|
/* braceright */
|
||||||
{ .keysym = 0x007d, .scancode = 0x1B,
|
{ .keysym = 0x007d, .scancode = 0x0b,
|
||||||
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
/* asciitilde */
|
/* asciitilde */
|
||||||
{ .keysym = 0x007e, .scancode = 0x29,
|
{ .keysym = 0x007e, .scancode = 0x1b,
|
||||||
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
.set_keysyms = GUAC_KEYSYMS_SHIFT },
|
||||||
|
|
||||||
{0}
|
{0}
|
||||||
|
Loading…
Reference in New Issue
Block a user