input: use default mapping if no mapping file is found
This commit is contained in:
parent
44feea4c01
commit
7cd832e914
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue