input: use default mapping if no mapping file is found

This commit is contained in:
flyinghead 2021-07-04 23:27:29 +02:00
parent 44feea4c01
commit 7cd832e914
1 changed files with 2 additions and 1 deletions

View File

@ -350,7 +350,8 @@ void GamepadDevice::load_system_mappings(int system)
for (int i = 0; i < GetGamepadCount(); i++)
{
std::shared_ptr<GamepadDevice> gamepad = GetGamepad(i);
gamepad->find_mapping(system);
if (!gamepad->find_mapping(system))
gamepad->input_mapper = gamepad->getDefaultMapping();
}
}