Basic support for QEMU Extended Key Events
This adds the basic infrastructure and handshake for the QEMU
Extended Key Events extension. No viewer or server makes use of
the extra functionality yet though.
diff --git a/unix/x0vncserver/x0vncserver.cxx b/unix/x0vncserver/x0vncserver.cxx
index 9e5da4f..7fb197a 100644
--- a/unix/x0vncserver/x0vncserver.cxx
+++ b/unix/x0vncserver/x0vncserver.cxx
@@ -295,10 +295,10 @@
#endif
}
- virtual void keyEvent(rdr::U32 key, bool down) {
+ virtual void keyEvent(rdr::U32 keysym, rdr::U32 xtcode, bool down) {
#ifdef HAVE_XTEST
if (!haveXtest) return;
- int keycode = XKeysymToKeycode(dpy, key);
+ int keycode = XKeysymToKeycode(dpy, keysym);
if (keycode)
XTestFakeKeyEvent(dpy, keycode, down, CurrentTime);
#endif