Changeset View
Changeset View
Standalone View
Standalone View
source/main.cpp
Show First 20 Lines • Show All 207 Lines • ▼ Show 20 Lines | static InReaction MainInputHandler(const SDL_Event_* ev) | ||||
return IN_PASS; | return IN_PASS; | ||||
} | } | ||||
// dispatch all pending events to the various receivers. | // dispatch all pending events to the various receivers. | ||||
static void PumpEvents() | static void PumpEvents() | ||||
{ | { | ||||
ScriptInterface::Request rq(g_GUI->GetScriptInterface()); | ScriptRequest rq(g_GUI->GetScriptInterface()); | ||||
PROFILE3("dispatch events"); | PROFILE3("dispatch events"); | ||||
SDL_Event_ ev; | SDL_Event_ ev; | ||||
while (in_poll_event(&ev)) | while (in_poll_event(&ev)) | ||||
{ | { | ||||
PROFILE2("event"); | PROFILE2("event"); | ||||
if (g_GUI) | if (g_GUI) | ||||
▲ Show 20 Lines • Show All 546 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator