Changeset View
Changeset View
Standalone View
Standalone View
source/tools/atlas/GameInterface/Handlers/MiscHandlers.cpp
Show First 20 Lines • Show All 187 Lines • ▼ Show 20 Lines | MESSAGEHANDLER(GuiMouseMotionEvent) | ||||
in_dispatch_event(&ev); | in_dispatch_event(&ev); | ||||
} | } | ||||
MESSAGEHANDLER(GuiKeyEvent) | MESSAGEHANDLER(GuiKeyEvent) | ||||
{ | { | ||||
SDL_Event_ ev = { { 0 } }; | SDL_Event_ ev = { { 0 } }; | ||||
ev.ev.type = msg->pressed ? SDL_KEYDOWN : SDL_KEYUP; | ev.ev.type = msg->pressed ? SDL_KEYDOWN : SDL_KEYUP; | ||||
ev.ev.key.keysym.sym = (SDL_Keycode)(int)msg->sdlkey; | ev.ev.key.keysym.sym = (SDL_Keycode)(int)msg->sdlkey; | ||||
ev.ev.key.keysym.scancode = SDL_GetScancodeFromKey((SDL_Keycode)(int)msg->sdlkey); | |||||
Silier: missing ( | |||||
in_dispatch_event(&ev); | in_dispatch_event(&ev); | ||||
} | } | ||||
MESSAGEHANDLER(GuiCharEvent) | MESSAGEHANDLER(GuiCharEvent) | ||||
{ | { | ||||
// Simulate special 'text input' events in the SDL | // Simulate special 'text input' events in the SDL | ||||
// This isn't quite compatible with WXWidget's handling, | // This isn't quite compatible with WXWidget's handling, | ||||
// so to avoid trouble we only send 'letter-like' ASCII input. | // so to avoid trouble we only send 'letter-like' ASCII input. | ||||
Show All 15 Lines |
Wildfire Games · Phabricator
missing (