mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-03-19 02:12:46 +01:00
Added support for , and . as input keys.
This commit is contained in:
@@ -121,8 +121,6 @@ bool UserInput::MapKey(std::string keyDescription, KeyCode_E key, bool required)
|
||||
return false;
|
||||
}
|
||||
|
||||
description = Utils::replace(description, ".", "");
|
||||
|
||||
std::istringstream ss(description);
|
||||
std::string token;
|
||||
|
||||
@@ -131,6 +129,8 @@ bool UserInput::MapKey(std::string keyDescription, KeyCode_E key, bool required)
|
||||
while (std::getline(ss, token, ','))
|
||||
{
|
||||
token = Configuration::trimEnds(token);
|
||||
if (token == "" && description != "") // Allow "," as input key
|
||||
token = ",";
|
||||
scanCode = SDL_GetScancodeFromName(token.c_str());
|
||||
|
||||
bool found = false;
|
||||
|
||||
Reference in New Issue
Block a user