Skip to content

Commit

Permalink
Implement set input command
Browse files Browse the repository at this point in the history
  • Loading branch information
LupertEverett authored and dpjudas committed Dec 22, 2024
1 parent fc90bee commit 9da6e37
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions SurrealEngine/Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,14 @@ std::string Engine::ConsoleCommand(UObject* context, const std::string& commandl
NameString propertyName = args[2];
std::string value = args[3];

// Special input setting handling
if (className == "input")
{
keybindings[propertyName.ToString()] = value;
packages->SetIniValue("user", "Engine.Input", propertyName, value);
return {};
}

UClass* cls = packages->FindClass(className);
if (!cls)
{
Expand Down

0 comments on commit 9da6e37

Please sign in to comment.