载入中...
搜索中...
未找到
Event.cpp
浏览该文件的文档.
Definition Exception.h:14
void push(Message *msg)
Queues a message. Thread-safe: workers may push completions for the main loop to poll.
Definition Event.cpp:31
Message * poll()
Pops the oldest message, or nullptr if the queue is empty (caller must delete).
Definition Event.cpp:49
virtual bool observePlatformEvent(const void *nativeEvent)
Definition PlatformEventSink.h:46
virtual void onPumpFinished()
Definition PlatformEventSink.h:56
virtual Message * translatePlatformEvent(const void *nativeEvent)
Definition PlatformEventSink.h:53
A named event carrying an ordered list of Variant payloads. Pushed messages are heap-allocated; the q...
Definition Event.h:56
void pump() override
Pumps the event queue. This function gathers all the pending input information from devices and place...
Definition Event.cpp:31
Message * wait() override
Waits for the next event (indefinitely). Useful for creating games where the screen and game state on...
Definition Event.cpp:47
Definition Event.cpp:13