[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
2021-08-17 04:41:21 -04:00
committed by Geoffrey McRae
parent ccda264648
commit 1c7d14169e
6 changed files with 15 additions and 15 deletions

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);
}