Shave 20 bytes by foricing isKeyboardModifier inline

pull/1047/head
Jesse Vincent 4 years ago
parent 72d4ac8124
commit 0dd2ca17d8
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -195,7 +195,7 @@ class Key {
// modifier keys like `LSHIFT(Key_RightAlt)` and `Key_Meh`. It will not match
// a key with only modifier flags (e.g. `LCTRL(RALT(Key_NoKey))`); this is an
// intentional feature so that plugins can distinguish between the two.
constexpr bool isKeyboardModifier() const {
constexpr bool __attribute__((always_inline)) isKeyboardModifier() const {
return (isKeyboardKey() &&
(keyCode_ >= HID_KEYBOARD_FIRST_MODIFIER &&
keyCode_ <= HID_KEYBOARD_LAST_MODIFIER));

Loading…
Cancel
Save