载入中...
搜索中...
未找到
Event.cpp
浏览该文件的文档.
#define EV_PROFILE_MODULE(module, name)
Profile the enclosing scope, tagged with a module for grouping.
Definition Profile.h:140
EVENGINE_API_FOUNDATION public API.
Definition PlatformEventSink.h:31
virtual bool shouldConsumePlatformEvent(const void *nativeEvent)
Definition PlatformEventSink.h:50
virtual void onPumpFinished()
Definition PlatformEventSink.h:62
virtual Message * translatePlatformEvent(const void *nativeEvent)
Definition PlatformEventSink.h:59
A named event carrying an ordered list of Variant payloads. Pushed messages are heap-allocated; the q...
Definition PlatformEvent.h:77
Message * poll()
Pops the oldest message, or nullptr if the queue is empty. @ownership Ownership transfers to the call...
Definition PlatformEvent.cpp:53
void push(Message *msg)
Queues a message. Thread-safe: workers may push completions for the main loop to poll.
Definition PlatformEvent.cpp:35
Message * wait() override
Waits for the next event (indefinitely). Useful for creating games where the screen and game state on...
Definition Event.cpp:56
void pump() override
Pumps the event queue. This function gathers all the pending input information from devices and place...
Definition Event.cpp:41
Definition Event.cpp:17