[client] use uapi keybindings internally

This commit moves SDL to uapi mapping to the SDL backend.
This commit is contained in:
Tudor Brindus
2021-01-17 21:54:21 -05:00
committed by Geoffrey McRae
parent 36b70779b9
commit 1f943fbbab
4 changed files with 57 additions and 74 deletions

View File

@@ -20,6 +20,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include <stdbool.h>
#include <stdatomic.h>
#include <SDL2/SDL.h>
#include <linux/input.h>
#include "interface/app.h"
#include "dynamic/displayservers.h"
@@ -46,8 +47,8 @@ struct AppState
bool ignoreInput;
bool escapeActive;
SDL_Scancode escapeAction;
KeybindHandle bindings[SDL_NUM_SCANCODES];
bool keyDown[SDL_NUM_SCANCODES];
KeybindHandle bindings[KEY_MAX];
bool keyDown[KEY_MAX];
bool haveSrcSize;
SDL_Point windowPos;