mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 00:30:57 +00:00
[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:
parent
ddc6f6bcb0
commit
e81d690b51
26 changed files with 197 additions and 109 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue