20 lines
376 B
C
20 lines
376 B
C
#ifndef CRASHPOWEROS_KEYBOARD_H
|
|
#define CRASHPOWEROS_KEYBOARD_H
|
|
|
|
#define KEYBOARD_DATA_PORT 0x60
|
|
#define KEYBOARD_STATUS_PORT 0x64
|
|
|
|
typedef struct {
|
|
int is_shift;
|
|
}KEY_STATUS;
|
|
|
|
typedef struct {
|
|
unsigned char *keyboard_map[128];
|
|
unsigned char *shift_keyboard_map[128];
|
|
}KEY_MAP;
|
|
|
|
void init_keyboard();
|
|
int handle_keyboard_input();
|
|
|
|
#endif //CRASHPOWEROS_KEYBOARD_H
|