2021-06-16 16:24:46 +00:00
|
|
|
#include <kernel/chroma.h>
|
|
|
|
|
|
|
|
/************************
|
|
|
|
*** Team Kitty, 2020 ***
|
|
|
|
*** Chroma ***
|
|
|
|
***********************/
|
|
|
|
|
2021-07-04 20:47:09 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2021-06-16 16:24:46 +00:00
|
|
|
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
|
|
|
|
2021-07-04 20:47:09 +00:00
|
|
|
void UninstallKBCallback(int Index);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|