[client] kb: rename key code arrays from xfree86_* to linux_*

We are using Linux key codes defined in input-event-codes.h, not XFree86
stuff.
This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-08-17 19:08:07 +10:00
1 parent ccda264648
commit 1c7d14169e
6 files changed
+15 -15

No files matched your search

+4 -4
View File
@@ -104,9 +104,9 @@ static void bind_mouseSens(int sc, void * opaque)
static void bind_ctrlAltFn(int sc, void * opaque)
{
const uint32_t ctrl = xfree86_to_ps2[KEY_LEFTCTRL];
const uint32_t alt = xfree86_to_ps2[KEY_LEFTALT ];
const uint32_t fn = xfree86_to_ps2[sc];
const uint32_t ctrl = linux_to_ps2[KEY_LEFTCTRL];
const uint32_t alt = linux_to_ps2[KEY_LEFTALT ];
const uint32_t fn = linux_to_ps2[sc];
spice_key_down(ctrl);
spice_key_down(alt );
spice_key_down(fn );
@@ -118,7 +118,7 @@ static void bind_ctrlAltFn(int sc, void * opaque)
static void bind_passthrough(int sc, void * opaque)
{
sc = xfree86_to_ps2[sc];
sc = linux_to_ps2[sc];
spice_key_down(sc);
spice_key_up (sc);
}