mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-25 22:26:59 +03:00
feat(event): add EventGetCurrentContext and EventPostClose
This commit is contained in:
parent
e7780e67fb
commit
8e61a4c428
@ -71,6 +71,14 @@ void EventDoMessageLoop() {
|
||||
IEvtSchedulerProcess();
|
||||
}
|
||||
|
||||
HEVENTCONTEXT EventGetCurrentContext() {
|
||||
return PropGet(PROP_EVENTCONTEXT);
|
||||
}
|
||||
|
||||
void EventPostClose() {
|
||||
EventPostCloseEx(nullptr);
|
||||
}
|
||||
|
||||
void EventPostCloseEx(HEVENTCONTEXT contextHandle) {
|
||||
if (!contextHandle) {
|
||||
contextHandle = PropGet(PROP_EVENTCONTEXT);
|
||||
|
@ -37,6 +37,8 @@ HEVENTCONTEXT EventCreateContextEx(int32_t interactive, int32_t (*initializeHand
|
||||
|
||||
void EventDoMessageLoop();
|
||||
|
||||
HEVENTCONTEXT EventGetCurrentContext();
|
||||
|
||||
void EventInitialize(int32_t threadCount, int32_t netServer);
|
||||
|
||||
void EventInitiateShutdown();
|
||||
@ -47,6 +49,8 @@ int32_t EventIsKeyDown(KEY key);
|
||||
|
||||
int32_t EventIsShiftKeyDown();
|
||||
|
||||
void EventPostClose();
|
||||
|
||||
void EventPostCloseEx(HEVENTCONTEXT contextHandle);
|
||||
|
||||
void EventRegister(EVENTID id, int32_t (*handler)(const void*, void*));
|
||||
|
Loading…
Reference in New Issue
Block a user