MCPcopy Create free account
hub / github.com/DFHack/dfhack / dfhooks_sdl_event

Function dfhooks_sdl_event

library/Hooks.cpp:92–96  ·  view source on GitHub ↗

called from the main thread for each SDL event. if true is returned, then the event has been consumed and further processing shouldn't happen

Source from the content-addressed store, hash-verified

90// called from the main thread for each SDL event. if true is returned, then
91// the event has been consumed and further processing shouldn't happen
92DFhackCExport bool dfhooks_sdl_event(SDL_Event* event) {
93 if (disabled)
94 return false;
95 return DFHack::Core::getInstance().DFH_SDL_Event(event);
96}
97
98// called from the main thread just after setting mouse state in gps and just
99// before rendering the screen buffer to the screen.

Callers

nothing calls this directly

Calls 1

DFH_SDL_EventMethod · 0.80

Tested by

no test coverage detected