mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 09:17:23 +01:00
[ION] Separate header for keyboard
This commit is contained in:
@@ -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
|
||||
|
||||
17
ion/include/ion/keyboard.h
Normal file
17
ion/include/ion/keyboard.h
Normal 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
|
||||
Reference in New Issue
Block a user