summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2014-12-03 03:06:03 -0800
committerGabe Black <gabeblack@google.com>2014-12-03 03:06:03 -0800
commitbce58726f35a97ad150e129160c611d6f7ca7417 (patch)
tree776b3657bf53874e58f9a197b7a8b7e7573272f6 /src
parent6489598fb449531c34bfb25a52189196ee2b1086 (diff)
downloadgem5-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.cc7
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;