Changeset View
Changeset View
Standalone View
Standalone View
source/ps/CConsole.cpp
Show First 20 Lines • Show All 632 Lines • ▼ Show 20 Lines | static bool isUnprintableChar(SDL_Keysym key) | ||||
} | } | ||||
} | } | ||||
InReaction conInputHandler(const SDL_Event_* ev) | InReaction conInputHandler(const SDL_Event_* ev) | ||||
{ | { | ||||
if (!g_Console) | if (!g_Console) | ||||
return IN_PASS; | return IN_PASS; | ||||
if ((int)ev->ev.type == SDL_HOTKEYDOWN) | if ((int)ev->ev.type == SDL_HOTKEYPRESS) | ||||
Stan: static_cast | |||||
Not Done Inline ActionsStill missing :) Stan: Still missing :) | |||||
{ | { | ||||
std::string hotkey = static_cast<const char*>(ev->ev.user.data1); | std::string hotkey = static_cast<const char*>(ev->ev.user.data1); | ||||
if (hotkey == "console.toggle") | if (hotkey == "console.toggle") | ||||
{ | { | ||||
g_Console->ToggleVisible(); | g_Console->ToggleVisible(); | ||||
return IN_HANDLED; | return IN_HANDLED; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
static_cast