[client] retain backwards compatibillity for the capture keycode

This is an ugly hack for now that will get us over the line for Beta 3,
after which will need to be addressed and people will need to be
informed that their configured escape key will have changed.
This commit is contained in:
Geoffrey McRae
2021-01-19 03:08:56 +11:00
parent 8a1578230f
commit d2458ff5d3
2 changed files with 12 additions and 2 deletions

View File

@@ -20,7 +20,9 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include <linux/input.h>
#include <SDL2/SDL.h>
static uint32_t sdl_to_xfree86[SDL_NUM_SCANCODES] =
//FIXME: this should be made static once config.c is no longer using SDL
//scancodes
uint32_t sdl_to_xfree86[SDL_NUM_SCANCODES] =
{
[SDL_SCANCODE_UNKNOWN] /* = USB 0 */ = KEY_RESERVED,
[SDL_SCANCODE_A] /* = USB 4 */ = KEY_A,