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