2021-06-16 16:24:46 +00:00
|
|
|
#include <kernel/chroma.h>
|
|
|
|
|
|
|
|
/************************
|
|
|
|
*** Team Kitty, 2020 ***
|
|
|
|
*** Chroma ***
|
|
|
|
***********************/
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
char Char;
|
2021-06-16 20:06:16 +00:00
|
|
|
char Scancode;
|
2021-06-16 16:24:46 +00:00
|
|
|
bool Pressed;
|
|
|
|
} KeyboardData;
|
|
|
|
|
2021-06-16 20:06:16 +00:00
|
|
|
typedef void (*KeyboardCallback)(KeyboardData Frame);
|
2021-06-16 16:24:46 +00:00
|
|
|
|
|
|
|
extern KeyboardCallback KeyboardCallbacks[16];
|
|
|
|
|
2021-06-16 20:06:16 +00:00
|
|
|
int SetupKBCallback(void (*Handler)(KeyboardData Frame));
|
2021-06-16 16:24:46 +00:00
|
|
|
|
|
|
|
void UninstallKBCallback(int Index);
|