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

Owning key value without an inferred physical keyboard scan code. More...

#include <input.hpp>

Public Member Functions

bool operator== (const KeyEvent &other) const =default
 Compare the complete event value.

Public Attributes

InputKey key {}
 Semantic identity.
char32_t scalar {}
 Character for control combinations, otherwise zero.
InputModifiers modifiers {}
 Observed modifiers.
KeyAction action {}
 Observed action; VT does not infer held state.

Detailed Description

Owning key value without an inferred physical keyboard scan code.

Member Function Documentation

◆ operator==()

bool portals::KeyEvent::operator== ( const KeyEvent & 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: