]> source.dussan.org Git - tigervnc.git/commit
x0vncserver: keyEvent(): use scancodes if available
authorPeter Korsgaard <peter.korsgaard@barco.com>
Wed, 12 Jul 2017 22:35:57 +0000 (00:35 +0200)
committerPierre Ossman <ossman@cendio.se>
Mon, 11 Sep 2017 14:40:12 +0000 (16:40 +0200)
commit8fe5090c8e968a3ee809711482804110ec9c7e30
treedb7009dc417db63f0bb936f992638b1b8caa349b
parent16e1dcb85cbfe467e38ec053060a7e4fc908795e
x0vncserver: keyEvent(): use scancodes if available

Use the client provided (using QEMU extendend key event) scancodes if
available instead of reverse mapping the keysym.

X11 unfortunately uses keyboard driver specific keycodes and provides
no direct way to query this, so guess based on the keyboard mapping.

Handle the two most likely keyboard drivers, the old xorgkbd and evdev.

Signed-off-by: Peter Korsgaard <peter.korsgaard@barco.com>
unix/x0vncserver/CMakeLists.txt
unix/x0vncserver/qnum_to_xorgevdev.c [new file with mode: 0644]
unix/x0vncserver/qnum_to_xorgkbd.c [new file with mode: 0644]
unix/x0vncserver/x0vncserver.cxx
unix/x0vncserver/x0vncserver.man