Add code to read KB

This commit is contained in:
hkz 2025-07-16 20:37:24 +02:00
commit 8ea172e603
6 changed files with 50 additions and 14 deletions

16
src/input.h Normal file
View file

@ -0,0 +1,16 @@
#ifndef _INPUT_HEADER_
#define _INPUT_HEADER_
#include <stdint.h>
typedef enum {
K_NONE = 0,
K_UP,
K_DOWN,
K_LEFT,
K_RIGHT,
} key;
key read_kb(void);
#endif /* _INPUT_HEADER_ */