Use common sc_action in input manager

Now that the scrcpy input events API exposes a sc_action enum, use the
same from the input manager.
This commit is contained in:
Romain Vimont 2021-12-29 15:56:59 +01:00
parent b8fed50639
commit e4396e34c2

View file

@ -3,13 +3,9 @@
#include <assert.h> #include <assert.h>
#include <SDL2/SDL_keycode.h> #include <SDL2/SDL_keycode.h>
#include "input_events.h"
#include "util/log.h" #include "util/log.h"
enum sc_action {
SC_ACTION_DOWN,
SC_ACTION_UP,
};
#define SC_SDL_SHORTCUT_MODS_MASK (KMOD_CTRL | KMOD_ALT | KMOD_GUI) #define SC_SDL_SHORTCUT_MODS_MASK (KMOD_CTRL | KMOD_ALT | KMOD_GUI)
static inline uint16_t static inline uint16_t