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

Method DFH_SDL_Event

library/Core.cpp:2034–2039  ·  view source on GitHub ↗

returns true if the event is handled

Source from the content-addressed store, hash-verified

2032
2033// returns true if the event is handled
2034bool Core::DFH_SDL_Event(SDL_Event* ev) {
2035 uint32_t start_ms = p->getTickCount();
2036 bool ret = doSdlInputEvent(ev);
2037 perf_counters.incCounter(perf_counters.total_keybinding_ms, start_ms);
2038 return ret;
2039}
2040
2041void Core::DFH_SDL_Loop() {
2042 DFHack::runRenderThreadCallbacks();

Callers 1

dfhooks_sdl_eventFunction · 0.80

Calls 2

getTickCountMethod · 0.80
incCounterMethod · 0.80

Tested by

no test coverage detected