Fix incorrect MODIFIER_MASK value

This commit is contained in:
Yelloween 2024-10-23 02:11:33 +03:00
parent 533c616cb8
commit 3c6f926309
2 changed files with 2 additions and 2 deletions

View file

@ -249,7 +249,7 @@ enum class Key {
enum class KeyModifierMask { enum class KeyModifierMask {
CODE_MASK = ((1 << 23) - 1), ///< Apply this mask to any keycode to remove modifiers. CODE_MASK = ((1 << 23) - 1), ///< Apply this mask to any keycode to remove modifiers.
MODIFIER_MASK = (0x7F << 22), ///< Apply this mask to isolate modifiers. MODIFIER_MASK = (0x7E << 22), ///< Apply this mask to isolate modifiers.
//RESERVED = (1 << 23), //RESERVED = (1 << 23),
CMD_OR_CTRL = (1 << 24), CMD_OR_CTRL = (1 << 24),
SHIFT = (1 << 25), SHIFT = (1 << 25),

View file

@ -2355,7 +2355,7 @@
<constant name="KEY_CODE_MASK" value="8388607" enum="KeyModifierMask" is_bitfield="true"> <constant name="KEY_CODE_MASK" value="8388607" enum="KeyModifierMask" is_bitfield="true">
Key Code mask. Key Code mask.
</constant> </constant>
<constant name="KEY_MODIFIER_MASK" value="532676608" enum="KeyModifierMask" is_bitfield="true"> <constant name="KEY_MODIFIER_MASK" value="528482304" enum="KeyModifierMask" is_bitfield="true">
Modifier key mask. Modifier key mask.
</constant> </constant>
<constant name="KEY_MASK_CMD_OR_CTRL" value="16777216" enum="KeyModifierMask" is_bitfield="true"> <constant name="KEY_MASK_CMD_OR_CTRL" value="16777216" enum="KeyModifierMask" is_bitfield="true">