Skip to content
Permalink
Browse files

use different event type enum for aleph

  • Loading branch information
catfact committed Mar 24, 2016
1 parent 1275cc7 commit 2e1e966feb738b6a3d1eb0abf2a53195afe5cdbf
Showing with 10 additions and 4 deletions.
  1. +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 );

0 comments on commit 2e1e966

Please sign in to comment.