mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-12 09:48:51 +01:00
remove SDLK_FIRST possible input
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
This commit is contained in:
parent
f7b831f0ab
commit
b8324b2bb7
@ -31,7 +31,6 @@ const key_names_s key_names[] = {
|
||||
sed 's/^#define \([^ \t]\+\)[ \t]*\([^\ \t]\+\)/ { \"\1\",\t\2 },/' /usr/include/linux/input.h
|
||||
*/
|
||||
{ "KEY_RESERVED", SDLK_UNKNOWN },
|
||||
{ "KEY_FIRST", SDLK_FIRST },
|
||||
{ "Escape", SDLK_ESCAPE },
|
||||
{ "1", SDLK_1 },
|
||||
{ "2", SDLK_2 },
|
||||
@ -237,7 +236,7 @@ bool UserInput::MapKey(std::string keyDescription, KeyCode_E key, bool required)
|
||||
|
||||
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));
|
||||
keyHandlers_.push_back(std::pair<InputHandler *, KeyCode_E>(new KeyboardHandler(scanCode), key));
|
||||
|
||||
@ -606,7 +606,6 @@ void MenuMode::launch( )
|
||||
break;
|
||||
|
||||
case SDLK_q:
|
||||
case SDLK_FIRST:
|
||||
case SDLK_ESCAPE:
|
||||
stop_menu_loop = 1;
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user