ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
ZenitUI::InputEvents Struct Reference

One frame's worth of keyboard input. More...

#include <CoreTypes.hpp>

Public Attributes

std::vector< int > chars
std::vector< int > keys
std::vector< int > held
bool hasCompositionUpdate {false}
 IME pre-edit (composition) state update for this frame (§6.3).
std::string compositionText
 UTF-8 pre-edit text (empty when cancelled/ended).
int compositionCursor {0}
 Caret offset in codepoints inside compositionText (or -1).
int compositionSelectionLen {0}
 Highlighted clause length in codepoints inside compositionText.
bool compositionCommitted {false}
 true when active composition was committed into chars.

Detailed Description

One frame's worth of keyboard input.

Member Data Documentation

◆ hasCompositionUpdate

bool ZenitUI::InputEvents::hasCompositionUpdate {false}

IME pre-edit (composition) state update for this frame (§6.3).

true if IME pre-edit state changed this frame.


The documentation for this struct was generated from the following file: