Observed modifiers, also usable by a native input adapter.
More...
#include <input.hpp>
|
| constexpr bool | has (key::Modifier modifier) const noexcept |
| bool | operator== (const InputModifiers &other) const =default |
| | Compare the complete event value.
|
|
|
bool | shift {} |
| | Shift modifier.
|
|
bool | alt {} |
| | Alt modifier (legacy ESC prefix is ambiguous).
|
|
bool | control {} |
| | Control modifier.
|
|
bool | super {} |
| | Super modifier; never inferred by this VT profile.
|
Observed modifiers, also usable by a native input adapter.
◆ has()
| bool portals::InputModifiers::has |
( |
key::Modifier | modifier | ) |
const |
|
inlineconstexprnoexcept |
- Parameters
-
| modifier | Semantic modifier to inspect. |
- Returns
- Whether this event reports the requested modifier.
◆ operator==()
| bool portals::InputModifiers::operator== |
( |
const InputModifiers & | other | ) |
const |
|
default |
Compare the complete event value.
- Parameters
-
| other | Event or metadata value to compare, without interpreting its payload. |
- Returns
- True when every stored field is equal; false otherwise.
The documentation for this struct was generated from the following file: