Pinconfig für Endbadge.
[hackover2013-badge-firmware.git] / badge / ui / event.h
index 5871207..4a165ee 100644 (file)
@@ -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 <stdint.h>
 
@@ -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
 }
This page took 0.020746 seconds and 4 git commands to generate.