mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-24 06:36:57 +03:00
feat(event): add EventGetCurrentContext and EventPostClose
This commit is contained in:
1 parent
e7780e67fb
commit
8e61a4c428
2 files changed
+12
No files matched your search
@@ -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*));
|
||||||
|
|||||||
Reference in new issue
Block a user