[ION] Separate header for keyboard

This commit is contained in:
Romain Goyet
2015-09-01 22:48:17 +02:00
parent b77627fdb9
commit e11f6efa94
2 changed files with 18 additions and 3 deletions

View File

@@ -1,8 +1,8 @@
#ifndef ION_ION_H
#define ION_ION_H
#include <stdint.h>
#include <ion/framebuffer.h>
#include <ion/keyboard.h>
void ion_init();
@@ -11,6 +11,4 @@ void ion_display_off();
void ion_sleep();
char ion_getchar();
#endif

View File

@@ -0,0 +1,17 @@
#ifndef ION_KEYBOARD_H
#define ION_KEYBOARD_H
#include <stdbool.h>
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