Merge pull request #506 from ggrtk/analog-controller

Update input profiles and input profile handling
This commit is contained in:
Connor McLaughlin
2020-05-28 13:06:40 +10:00
committed by GitHub
6 changed files with 59 additions and 34 deletions

View File

@ -67,7 +67,7 @@ std::optional<s32> AnalogController::GetButtonCodeByName(std::string_view button
void AnalogController::SetAxisState(s32 axis_code, float value)
{
if (axis_code < 0 || axis_code >= static_cast<s32>(Button::Count))
if (axis_code < 0 || axis_code >= static_cast<s32>(Axis::Count))
return;
// -1..1 -> 0..255