Kernel: Handle 'Menu' key on PS/2 keyboard

This commit is contained in:
Jean-Baptiste Boric 2021-02-13 15:22:35 +01:00 committed by Andreas Kling
parent e616cb35ba
commit 0d22ec9d32
Notes: sideshowbarker 2024-07-18 22:13:54 +09:00
2 changed files with 6 additions and 1 deletions

View file

@ -134,7 +134,8 @@
__ENUMERATE_KEY_CODE(Pipe, "|") \
__ENUMERATE_KEY_CODE(Tilde, "~") \
__ENUMERATE_KEY_CODE(Backtick, "`") \
__ENUMERATE_KEY_CODE(Logo, "Logo")
__ENUMERATE_KEY_CODE(Logo, "Logo") \
__ENUMERATE_KEY_CODE(Menu, "Menu")
enum KeyCode : u8 {
#define __ENUMERATE_KEY_CODE(name, ui_name) Key_##name,

View file

@ -132,6 +132,8 @@ static const KeyCode unshifted_key_map[0x80] = {
Key_Invalid,
Key_Invalid,
Key_Logo,
Key_Invalid,
Key_Menu,
};
static const KeyCode shifted_key_map[0x100] = {
@ -227,6 +229,8 @@ static const KeyCode shifted_key_map[0x100] = {
Key_Invalid,
Key_Invalid,
Key_Logo,
Key_Invalid,
Key_Menu,
};
static const KeyCode numpad_key_map[13] = { Key_7, Key_8, Key_9, Key_Invalid, Key_4, Key_5, Key_6, Key_Invalid, Key_1, Key_2, Key_3, Key_0, Key_Comma };