From e11f6efa94fa3b08e41fe3cf4a99cb625f31bd50 Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Tue, 1 Sep 2015 22:48:17 +0200 Subject: [PATCH] [ION] Separate header for keyboard --- ion/include/ion.h | 4 +--- ion/include/ion/keyboard.h | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 ion/include/ion/keyboard.h diff --git a/ion/include/ion.h b/ion/include/ion.h index 03753242b..b81e0d9ff 100644 --- a/ion/include/ion.h +++ b/ion/include/ion.h @@ -1,8 +1,8 @@ #ifndef ION_ION_H #define ION_ION_H -#include #include +#include void ion_init(); @@ -11,6 +11,4 @@ void ion_display_off(); void ion_sleep(); -char ion_getchar(); - #endif diff --git a/ion/include/ion/keyboard.h b/ion/include/ion/keyboard.h new file mode 100644 index 000000000..9ea13dbc4 --- /dev/null +++ b/ion/include/ion/keyboard.h @@ -0,0 +1,17 @@ +#ifndef ION_KEYBOARD_H +#define ION_KEYBOARD_H + +#include + +typedef enum { + ION_KEY_1, + ION_KEY_2, + ION_KEY_PLUS, + ION_KEY_MINUS +} ion_key_t; + +bool ion_scankey(ion_key_t key); + +char ion_getchar(); + +#endif