2024-02-15 01:15:55 +00:00
|
|
|
#ifndef __KEYBOARD_H__
|
|
|
|
#define __KEYBOARD_H__ 1
|
|
|
|
|
2024-02-20 13:00:13 +00:00
|
|
|
#include "../types.h"
|
2024-02-15 01:15:55 +00:00
|
|
|
|
|
|
|
extern unsigned char keystateBits[];
|
|
|
|
|
|
|
|
struct KeyboardKeydownState {
|
|
|
|
byte KEY_W;
|
|
|
|
byte KEY_A;
|
|
|
|
byte KEY_S;
|
|
|
|
byte KEY_D;
|
2024-02-20 17:39:28 +00:00
|
|
|
byte KEY_ESC;
|
2024-02-15 01:15:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern struct KeyboardKeydownState keyboardKeydownState;
|
|
|
|
|
|
|
|
void installKeyboardHandler();
|
|
|
|
void uninstallKeyboardHandler();
|
|
|
|
void populateKeyboardKeydownState();
|
|
|
|
|
|
|
|
#endif
|