mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2023-12-30 21:52:56 +00:00
parent
831c3f49bf
commit
1749a2ba09
@ -569,7 +569,7 @@ std::string GameInput::GetShortInputDescription() const
|
|||||||
keyName = std::to_string(Value);
|
keyName = std::to_string(Value);
|
||||||
break;
|
break;
|
||||||
case InputTypes::GameController:
|
case InputTypes::GameController:
|
||||||
if (Value >= SDL_CONTROLLER_BUTTON_A && Value < SDL_CONTROLLER_BUTTON_MAX)
|
if (Value >= SDL_CONTROLLER_BUTTON_A && Value < std::min(static_cast<int>(SDL_CONTROLLER_BUTTON_MAX), 21))
|
||||||
keyName = controllerButtons[Value];
|
keyName = controllerButtons[Value];
|
||||||
else
|
else
|
||||||
keyName = std::to_string(Value);
|
keyName = std::to_string(Value);
|
||||||
|
Loading…
Reference in New Issue
Block a user