remove SDLK_FIRST possible input

Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
This commit is contained in:
Vincent-FK 2019-11-15 14:18:47 +08:00
parent f7b831f0ab
commit b8324b2bb7
2 changed files with 1 additions and 3 deletions

View File

@ -31,7 +31,6 @@ const key_names_s key_names[] = {
sed 's/^#define \([^ \t]\+\)[ \t]*\([^\ \t]\+\)/ { \"\1\",\t\2 },/' /usr/include/linux/input.h sed 's/^#define \([^ \t]\+\)[ \t]*\([^\ \t]\+\)/ { \"\1\",\t\2 },/' /usr/include/linux/input.h
*/ */
{ "KEY_RESERVED", SDLK_UNKNOWN }, { "KEY_RESERVED", SDLK_UNKNOWN },
{ "KEY_FIRST", SDLK_FIRST },
{ "Escape", SDLK_ESCAPE }, { "Escape", SDLK_ESCAPE },
{ "1", SDLK_1 }, { "1", SDLK_1 },
{ "2", SDLK_2 }, { "2", SDLK_2 },
@ -237,7 +236,7 @@ bool UserInput::MapKey(std::string keyDescription, KeyCode_E key, bool required)
bool found = false; bool found = false;
if (scanCode != SDLK_UNKNOWN || !strcmp(token.c_str(),"SDLK_FIRST") ) if (scanCode != SDLK_UNKNOWN)
{ {
Logger::write(Logger::ZONE_INFO, "Input", "Binding key " + configKey + ", Key Value: " + std::to_string(scanCode)); Logger::write(Logger::ZONE_INFO, "Input", "Binding key " + configKey + ", Key Value: " + std::to_string(scanCode));
keyHandlers_.push_back(std::pair<InputHandler *, KeyCode_E>(new KeyboardHandler(scanCode), key)); keyHandlers_.push_back(std::pair<InputHandler *, KeyCode_E>(new KeyboardHandler(scanCode), key));

View File

@ -606,7 +606,6 @@ void MenuMode::launch( )
break; break;
case SDLK_q: case SDLK_q:
case SDLK_FIRST:
case SDLK_ESCAPE: case SDLK_ESCAPE:
stop_menu_loop = 1; stop_menu_loop = 1;
break; break;