mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 06:24:58 +00:00
Kernel: Define bitwise operations for KeyModifier
This type is designed to be use as a flag. Define bitwise operations for convenience.
This commit is contained in:
parent
8f3b97e095
commit
4b777397b5
1 changed files with 3 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/EnumBits.h>
|
||||
#include <AK/Types.h>
|
||||
|
||||
#define ENUMERATE_KEY_CODES \
|
||||
|
@ -167,6 +168,8 @@ enum KeyModifier {
|
|||
Is_Press = 0x80,
|
||||
};
|
||||
|
||||
AK_ENUM_BITWISE_OPERATORS(KeyModifier);
|
||||
|
||||
struct KeyEvent {
|
||||
KeyCode key { Key_Invalid };
|
||||
u8 map_entry_index { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue