add more keys to lock

This commit is contained in:
cuu
2022-11-13 13:30:51 +08:00
parent 521c5f0441
commit 2204b6dfd4
3 changed files with 66 additions and 60 deletions

View File

@@ -12,18 +12,28 @@ typedef struct key_debouncing{
}KEY_DEB;
typedef struct keyboard_lock{
uint16_t lock;//
uint16_t time;//
uint16_t begin;//
}KEYBOARD_LOCK;
typedef struct keyboard_state{
uint8_t layer;
uint8_t prev_layer;
uint8_t fn_on;
uint8_t shift;
uint8_t backlight;//0 1 2 3
uint8_t lock;//0 1
uint16_t ctrl_lock;//
uint16_t ctrl_time;//
uint16_t ctrl_begin;//
KEYBOARD_LOCK ctrl;
KEYBOARD_LOCK shift;
KEYBOARD_LOCK alt;
KEYBOARD_LOCK fn;
}KEYBOARD_STATE;
class DEVTERM {