Skip to content
Snippets Groups Projects
Commit 5b06f961 authored by Byron Lathi's avatar Byron Lathi
Browse files

add more modifier keys

parent 0c3fc26e
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,8 @@ uint32_t keyboard_handle_irq()
lshift_flag = 1;
} else if (scancode == RSHIFT) {
rshift_flag = 1;
} else if (scancode == LALT) {
} else {
if (lshift_flag || rshift_flag) {
last_key = shift_map[scancode];
......
......@@ -7,6 +7,11 @@
#define LSHIFT 0x2a
#define RSHIFT 0x36
#define LALT 0x38
#define CAPSLOCK 0x3a
#define BACKSPACE 0x0e
#define MODIFIER (LSHIFT || RSHIFT || LALT )
uint32_t keyboard_init();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment