diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index bb0c3a273..376ce2ae2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -266,6 +266,7 @@ public: } else { keyIsDown.unset(event.KeyInput); } + return true; } if(event.EventType == irr::EET_MOUSE_INPUT_EVENT) @@ -1484,10 +1485,11 @@ int main(int argc, char *argv[]) bool random_input = g_settings->getBool("random_input") || cmd_args.getFlag("random-input"); InputHandler *input = NULL; - if(random_input) + if(random_input) { input = new RandomInputHandler(); - else + } else { input = new RealInputHandler(device, &receiver); + } scene::ISceneManager* smgr = device->getSceneManager(); |