Chroma/inc/kernel/system/driver/keyboard.h

28 lines
487 B
C
Raw Normal View History

#include <kernel/chroma.h>
/************************
*** Team Kitty, 2020 ***
*** Chroma ***
***********************/
2021-07-04 20:47:09 +00:00
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
char Char;
char Scancode;
bool Pressed;
} KeyboardData;
typedef void (*KeyboardCallback)(KeyboardData Frame);
extern KeyboardCallback KeyboardCallbacks[16];
int SetupKBCallback(void (*Handler)(KeyboardData Frame));
2021-07-04 20:47:09 +00:00
void UninstallKBCallback(int Index);
#ifdef __cplusplus
}
#endif