MCPcopy Create free account
hub / github.com/Norbyte/bg3se / FireInputEvents

Method FireInputEvents

BG3Extender/Extender/Client/ExtensionStateClient.cpp:89–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void ExtensionState::FireInputEvents()
90{
91 OPTICK_EVENT(Optick::Category::Input);
92 if (!deferredInputEvents_.empty()) {
93 LuaClientPin lua(*this);
94 if (lua) {
95 SDL_Event evt;
96 while (deferredInputEvents_.try_pop(evt)) {
97 lua->OnInputEvent(&evt, nullptr);
98 }
99 }
100 }
101}
102
103void ExtensionState::OnInputEvent(SDL_Event* event, int& result)
104{

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.45
OnInputEventMethod · 0.45

Tested by

no test coverage detected