mirror of
https://codeberg.org/hkzlab/TK2048.git
synced 2025-12-26 03:52:16 +11:00
Add code to read KB
This commit is contained in:
parent
d8f5c22350
commit
8ea172e603
6 changed files with 50 additions and 14 deletions
16
src/input.h
Normal file
16
src/input.h
Normal 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_ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue