feat(event): implement all SEvt functions

This commit is contained in:
Adam Heinermann 2025-09-02 18:35:51 -07:00 committed by fallenoak
parent ff0b43c2ce
commit 7c72c25553
5 changed files with 1153 additions and 0 deletions

34
storm/Event.h Normal file
View file

@ -0,0 +1,34 @@
#ifndef STORM_EVENT_HPP
#define STORM_EVENT_HPP
#include <cstdint>
#ifndef STORMAPI
#if defined(_MSC_VER)
#define STORMAPI __stdcall
#else
#define STORMAPI
#endif
#endif
typedef void (STORMAPI* SEVTHANDLER)(void*);
int32_t SEvtBreakHandlerChain(void* data);
int32_t SEvtDestroy();
int32_t SEvtDispatch(uint32_t type, uint32_t subtype, uint32_t id, void* data);
int32_t SEvtPopState(uint32_t type, uint32_t subtype);
int32_t SEvtPushState(uint32_t type, uint32_t subtype);
int32_t SEvtRegisterHandler(uint32_t type, uint32_t subtype, uint32_t id, uint32_t flags, SEVTHANDLER handler);
int32_t SEvtUnregisterHandler(uint32_t type, uint32_t subtype, uint32_t id, SEVTHANDLER handler);
int32_t SEvtUnregisterType(uint32_t type, uint32_t subtype);
#endif