mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 16:37:30 +00:00
df2ed4b086
This fixes the dependency issues between qwaq and ruamoko. qwaq is actually older than ruamoko. That little language feature test has come a long way. However, I'm considering moving to non-recursive make, but...
35 lines
556 B
C
35 lines
556 B
C
#ifndef __qwaq_event_h
|
|
#define __qwaq_event_h
|
|
|
|
typedef enum {
|
|
qe_none,
|
|
qe_key,
|
|
qe_mouse,
|
|
qe_command, // application level command
|
|
} qwaq_etype;
|
|
|
|
typedef enum {
|
|
qc_valid,
|
|
qc_exit,
|
|
qc_error,
|
|
} qwaq_command;
|
|
|
|
typedef struct qwaq_mevent_s {
|
|
int x, y;
|
|
int buttons;
|
|
} qwaq_mevent_t;
|
|
|
|
typedef struct qwaq_message_s {
|
|
qwaq_command command;
|
|
} qwaq_message_t;
|
|
|
|
typedef struct qwaq_event_s {
|
|
qwaq_etype event_type;
|
|
union {
|
|
int key;
|
|
qwaq_mevent_t mouse;
|
|
qwaq_message_t message;
|
|
} e;
|
|
} qwaq_event_t;
|
|
|
|
#endif//__qwaq_event_h
|