X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/3c932d305715878e01a77659a30a3e4d967fc244..3deacf340c59a89b862f228d251307e71a9c9189:/badge/ui/event.h diff --git a/badge/ui/event.h b/badge/ui/event.h index 5871207..4a165ee 100644 --- a/badge/ui/event.h +++ b/badge/ui/event.h @@ -1,5 +1,5 @@ -#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 @@ -9,7 +9,7 @@ extern "C" { enum { BADGE_EVENT_USER_INPUT, - BADGE_EVENT_GAME_TICK, + BADGE_EVENT_GAME_TICK }; enum { @@ -28,6 +28,7 @@ extern "C" { 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) { @@ -36,6 +37,7 @@ extern "C" { badge_event_t badge_event_wait(void); void badge_event_start(void); + void badge_event_stop (void); #ifdef __cplusplus }