X-Git-Url: http://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/3c932d305715878e01a77659a30a3e4d967fc244..7751ce27e6d1ab3ec789c8edb5baa41b1ba1e85a:/badge/ui/event.h?ds=sidebyside 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 }