2021-12-28 18:47:32 +00:00
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
2022-09-01 18:16:16 +00:00
|
|
|
#include "../../terminal/kterm.h"
|
2022-09-01 14:42:56 +00:00
|
|
|
enum ScanCodeSet {
|
2021-12-28 18:47:32 +00:00
|
|
|
None = 0,
|
|
|
|
ScanCodeSet1 = 1,
|
|
|
|
ScanCodeSet2 = 2,
|
|
|
|
ScanCodeSet3 = 3,
|
|
|
|
};
|
|
|
|
|
2022-09-01 14:42:56 +00:00
|
|
|
enum Modifiers {
|
2021-12-28 18:47:32 +00:00
|
|
|
LSHIFT = 1,
|
|
|
|
RSHIFT = 2,
|
|
|
|
|
|
|
|
LCTRL = 3,
|
|
|
|
RCTRL = 4,
|
|
|
|
|
|
|
|
LALT = 5,
|
|
|
|
RALT = 6
|
|
|
|
};
|
|
|
|
|
|
|
|
struct KeyPressInfo{
|
|
|
|
uint8_t PressedModifiers;
|
|
|
|
uint8_t ScanCode;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extern KeyPressInfo keyPress;
|
|
|
|
|
|
|
|
void KeyHandled();
|
|
|
|
|
|
|
|
char getASCIIKey();
|
|
|
|
uint8_t getKey();
|