Added keysym strings for alt and all modifiers.

This commit is contained in:
Michael Jumper 2012-03-20 21:03:34 -07:00
parent 7290c2fe89
commit b9a1652049
2 changed files with 19 additions and 0 deletions

View File

@ -118,5 +118,15 @@ extern const guac_rdp_keysym_altcode_map guac_rdp_keysym_altcode;
*/ */
extern const int GUAC_KEYSYMS_SHIFT[]; extern const int GUAC_KEYSYMS_SHIFT[];
/**
* Keysym string containing only the left "alt" key.
*/
extern const int GUAC_KEYSYMS_ALT[];
/**
* Keysym string containing all modifier keys.
*/
extern const int GUAC_KEYSYMS_ALL_MODIFIERS[];
#endif #endif

View File

@ -39,3 +39,12 @@
const int GUAC_KEYSYMS_SHIFT[] = {0xFFE1, 0}; const int GUAC_KEYSYMS_SHIFT[] = {0xFFE1, 0};
const int GUAC_KEYSYMS_ALT[] = {0xFFE9, 0};
const int GUAC_KEYSYMS_ALL_MODIFIERS[] = {
0xFFE1, 0xFFE2, /* Left and right shift */
0xFFE3, 0xFFE4, /* Left and right control */
0xFFE9, 0xFFEA, /* Left and right alt */
0
};