Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
use different event type enum for aleph
- Loading branch information
Showing
with
10 additions
and
4 deletions.
-
+10
−4
src/events.h
|
|
@@ -3,10 +3,12 @@ |
|
|
|
|
|
#include "types.h" |
|
|
|
|
|
|
|
|
// global array of pointers to handlers |
|
|
extern void (*app_event_handlers[])(s32 data); |
|
|
|
|
|
// FIXME: |
|
|
// aleph has more event types for UI hardware. |
|
|
// there is probably a cleaner way of doing this. |
|
|
#ifdef MOD_ALEPH |
|
|
#include "event_types.h" |
|
|
#else |
|
|
|
|
|
// enumerate event types |
|
|
typedef enum { |
|
|
@@ -46,13 +48,17 @@ typedef enum { |
|
|
kNumEventTypes, |
|
|
} etype; |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
typedef struct { |
|
|
etype type; |
|
|
s32 data; |
|
|
} event_t; |
|
|
|
|
|
// global array of pointers to handlers |
|
|
extern void (*app_event_handlers[])(s32 data); |
|
|
|
|
|
// init event queue |
|
|
void init_events( void ); |
|
|
|