-#ifndef INCLUDED_BADGE2013_MOCKUP_EVENT_H
-#define INCLUDED_BADGE2013_MOCKUP_EVENT_H
+#ifndef INCLUDED_BADGE2013_BADGE_UI_EVENT_H
+#define INCLUDED_BADGE2013_BADGE_UI_EVENT_H
#include <stdint.h>
enum {
BADGE_EVENT_USER_INPUT,
- BADGE_EVENT_GAME_TICK,
+ BADGE_EVENT_GAME_TICK
};
enum {
static inline uint8_t badge_event_old_input_state(badge_event_t event) { return (uint8_t) (event >> 2 & 0x7f); }
static inline uint8_t badge_event_new_input_state(badge_event_t event) { return (uint8_t) (event >> 9 ); }
+ uint8_t badge_input_raw(void);
uint8_t badge_event_current_input_state(void);
static inline badge_event_t badge_event_new(uint8_t type, uint8_t old_input_state, uint8_t new_input_state) {
badge_event_t badge_event_wait(void);
void badge_event_start(void);
+ void badge_event_stop (void);
#ifdef __cplusplus
}