Frontend: Dynamic button mapping based on controller type

This commit is contained in:
Connor McLaughlin
2019-12-15 00:17:43 +10:00
parent c65279f944
commit 32d8b4dc84
6 changed files with 271 additions and 167 deletions

View File

@ -43,10 +43,15 @@ std::optional<s32> Controller::GetButtonCodeByName(ControllerType type, std::str
switch (type)
{
case ControllerType::DigitalController:
return DigitalController::GetButtonCodeByName(button_name);
return DigitalController::StaticGetButtonCodeByName(button_name);
case ControllerType::None:
default:
return std::nullopt;
}
}
std::optional<s32> Controller::GetButtonCodeByName(std::string_view button_name) const
{
return std::nullopt;
}