diff options
author | Gabe Black <gabeblack@google.com> | 2014-12-03 03:06:03 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2014-12-03 03:06:03 -0800 |
commit | bce58726f35a97ad150e129160c611d6f7ca7417 (patch) | |
tree | 776b3657bf53874e58f9a197b7a8b7e7573272f6 /src | |
parent | 6489598fb449531c34bfb25a52189196ee2b1086 (diff) | |
download | gem5-bce58726f35a97ad150e129160c611d6f7ca7417.tar.xz |
dev: Support translating left and right ALT keys.
This is used primarily for VNC.
Diffstat (limited to 'src')
-rw-r--r-- | src/dev/ps2.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/dev/ps2.cc b/src/dev/ps2.cc index dbcdfcaec..0d973ad70 100644 --- a/src/dev/ps2.cc +++ b/src/dev/ps2.cc @@ -174,6 +174,13 @@ keySymToPs2(uint32_t key, bool down, bool &cur_shift, extended = true; keys.push_back(0x14); break; + case XK_Alt_L: + keys.push_back(0x11); + break; + case XK_Alt_R: + extended = true; + keys.push_back(0x11); + break; default: warn("Unknown extended key %#x\n", key); return; |