From eda9214f81b32d9606f425e3777616e8cfc0a44f Mon Sep 17 00:00:00 2001 From: sapier Date: Sun, 6 Apr 2014 15:12:04 +0200 Subject: Bunch of small fixes (coding style, very unlikely errors, warning messages) --- src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') 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(); -- cgit v1.2.3