migrant input: ja mapeja be tots els botons desde el fitxer de configuració

This commit is contained in:
2025-08-04 19:58:10 +02:00
parent adf21086e5
commit 4fd78d216a
4 changed files with 22 additions and 12 deletions
+5
View File
@@ -91,4 +91,9 @@ const std::unordered_map<std::string, SDL_GamepadButton> stringToButton = {
{"DPAD_DOWN", SDL_GAMEPAD_BUTTON_DPAD_DOWN},
{"DPAD_LEFT", SDL_GAMEPAD_BUTTON_DPAD_LEFT},
{"DPAD_RIGHT", SDL_GAMEPAD_BUTTON_DPAD_RIGHT}
};
const std::unordered_map<InputAction, InputAction> actionToAction = {
{InputAction::SM_SELECT, InputAction::FIRE_LEFT},
{InputAction::SM_BACK, InputAction::FIRE_CENTER},
};