Value | Meaning |
---|---|
XKB_STATE_MODS_DEPRESSED(1 << 0) | Depressed modifiers, i.e. a key is physically holding them. |
XKB_STATE_MODS_LATCHED(1 << 1) | Latched modifiers, i.e. will be unset after the next non-modifier * key press. |
XKB_STATE_MODS_LOCKED(1 << 2) | Locked modifiers, i.e. will be unset after the key provoking the * lock has been pressed again. |
XKB_STATE_MODS_EFFECTIVE(1 << 3) | Effective modifiers, i.e. currently active and affect key * processing (derived from the other state components). * Use this unless you explictly care how the state came about. |
XKB_STATE_LAYOUT_DEPRESSED(1 << 4) | Depressed layout, i.e. a key is physically holding it. |
XKB_STATE_LAYOUT_LATCHED(1 << 5) | Latched layout, i.e. will be unset after the next non-modifier * key press. |
XKB_STATE_LAYOUT_LOCKED(1 << 6) | Locked layout, i.e. will be unset after the key provoking the lock * has been pressed again. |
XKB_STATE_LAYOUT_EFFECTIVE(1 << 7) | Effective layout, i.e. currently active and affects key processing * (derived from the other state components). * Use this unless you explictly care how the state came about. |
XKB_STATE_LEDS(1 << 8) | LEDs (derived from the other state components). |
Modifier and layout types for state objects. This enum is bitmaskable, e.g. (XKB_STATE_MODS_DEPRESSED | XKB_STATE_MODS_LATCHED) is valid to exclude locked modifiers.
In XKB, the DEPRESSED components are also known as 'base'.