|
ZenitUI
Retained-mode C++20 UI framework
|
Thread-safe event-to-polling accumulator for event-driven IPlatform backends. More...
#include "CoreTypes.hpp"#include "Utf8.hpp"#include <algorithm>#include <array>#include <mutex>#include <string_view>#include <vector>Go to the source code of this file.
Classes | |
| class | ZenitUI::InputAccumulator |
| Buffers asynchronous OS mouse/keyboard/text events and drains them once per frame into PointerState and InputEvents. More... | |
Thread-safe event-to-polling accumulator for event-driven IPlatform backends.
Event-driven windowing libraries (SDL3, GLFW, Win32 WndProc) deliver input asynchronously via callbacks or an event loop, whereas IPlatform exposes a per-frame polling API (pointer(), pollInputEvents()). Backends can embed an InputAccumulator to guarantee ZenitUI's one-frame edge-trigger invariants without rewriting queue and synchronization logic.