Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::InputModifiers Struct Reference

Observed modifiers, also usable by a native input adapter. More...

#include <input.hpp>

Public Member Functions

constexpr bool has (key::Modifier modifier) const noexcept
bool operator== (const InputModifiers &other) const =default
 Compare the complete event value.

Public Attributes

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.

Detailed Description

Observed modifiers, also usable by a native input adapter.

Member Function Documentation

◆ has()

bool portals::InputModifiers::has ( key::Modifier modifier) const
inlineconstexprnoexcept
Parameters
modifierSemantic 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
otherEvent 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: