diff --git a/src/kaleidoscope/key_defs.h b/src/kaleidoscope/key_defs.h index 8ae7fa36..b4c03ad1 100644 --- a/src/kaleidoscope/key_defs.h +++ b/src/kaleidoscope/key_defs.h @@ -42,6 +42,16 @@ union Key { }; uint16_t raw; + Key() = default; + + constexpr Key(uint8_t __keyCode, uint8_t __flags) + : keyCode(__keyCode), flags(__flags) { + } + + constexpr Key(uint16_t __raw) + : raw(__raw) { + } + constexpr bool operator==(const uint16_t rhs) const { return this->raw == rhs; }