From: Ingo Ruhnke Date: Wed, 6 Aug 2014 03:46:11 +0000 (+0200) Subject: Removed obsolete keycode range check X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=18f921ddfb47614f645badc0be1cf5f054749ea9;p=supertux.git Removed obsolete keycode range check --- diff --git a/src/control/joystickkeyboardcontroller.cpp b/src/control/joystickkeyboardcontroller.cpp index fe695bde7..50de73969 100644 --- a/src/control/joystickkeyboardcontroller.cpp +++ b/src/control/joystickkeyboardcontroller.cpp @@ -87,10 +87,6 @@ JoystickKeyboardController::read(const Reader& lisp) const lisp::Lisp* map = iter.lisp(); map->get("key", key); map->get("control", control); -// if (key < SDLK_FIRST || key >= SDLK_LAST) { -// log_info << "Invalid key '" << key << "' in keymap" << std::endl; -// continue; -// } int i = 0; for(i = 0; Controller::controlNames[i] != 0; ++i) {