From: Michael Jumper Date: Tue, 20 Mar 2012 21:18:48 +0000 (-0700) Subject: Added alt-code mapping structures. X-Git-Url: http://git.alex.org.uk Added alt-code mapping structures. --- diff --git a/include/rdp_keymap.h b/include/rdp_keymap.h index 754e00e..60fde70 100644 --- a/include/rdp_keymap.h +++ b/include/rdp_keymap.h @@ -68,7 +68,30 @@ typedef struct guac_rdp_keymap { } guac_rdp_keymap; +/** + * Represents the Alt-code which types a given keysym. This is used as a + * fallback mapping, should a particular keymap not support a certain keysym. + * + * See: http://en.wikipedia.org/wiki/Alt_code + */ +typedef struct guac_rdp_alt_keymap { + + /** + * The 4-digit Alt-code which types this keysym. + */ + char alt_code[4]; + +} guac_rdp_alt_keymap; + +/** + * Map of X11 keysyms to RDP scancodes. + */ extern const guac_rdp_keymap guac_rdp_keysym_scancode[256][256]; +/** + * Map of X11 keysyms to Windows Alt-codes. + */ +extern const guac_rdp_alt_keymap guac_rdp_keysym_altcode[256][256]; + #endif