mirror of
https://github.com/glest/glest-source.git
synced 2025-10-01 09:56:41 +02:00
eventSdlKeyDown
Give the real SDL_KEYDOWN to the Window/Program states. This fixes issues with group keys and SDL2.
This commit is contained in:
@@ -1129,6 +1129,13 @@ bool MainWindow::eventTextInput(std::string text) {
|
||||
return result;
|
||||
}
|
||||
|
||||
bool MainWindow::eventSdlKeyDown(SDL_KeyboardEvent key) {
|
||||
if(program == NULL) {
|
||||
throw megaglest_runtime_error("In [MainWindow::eventKeyDown] ERROR, program == NULL!");
|
||||
}
|
||||
return program->sdlKeyDown(key);
|
||||
}
|
||||
|
||||
void MainWindow::eventKeyDown(SDL_KeyboardEvent key) {
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] [%d]\n",__FILE__,__FUNCTION__,__LINE__,key.keysym.sym);
|
||||
|
||||
|
Reference in New Issue
Block a user