[input] Create QF input library using keys.c

This refactors (as such) keys.c so that it no longer depends on console
or gib, and pulls keys out of video targets. The eventual plan is to
move all high-level general input handling into libQFinput, and probably
low-level (eg, /dev/input handling for joysticks etc on Linux).

Fixes #8
This commit is contained in:
Bill Currie 2021-07-05 16:26:07 +09:00
parent ddc6f6bcb0
commit e81d690b51
26 changed files with 197 additions and 109 deletions

View file

@ -30,7 +30,6 @@
#include <stdarg.h>
#include <QF/keys.h>
#include <QF/plugin.h>
#include <QF/qtypes.h>
@ -38,7 +37,6 @@ typedef struct console_funcs_s {
void (*init) (void);
void (*print) (const char *fmt, va_list args) __attribute__((format(PRINTF, 1, 0)));
void (*process_input) (void);
void (*key_event) (knum_t key, short unicode, qboolean down);
void (*draw_console) (void);
void (*check_resize) (void);
void (*new_map) (void);