Fix inconsistency between DItoGI and GItoDI. ReadMappings was updating GItoDI and we didn't update DItoGI; AddDefaultMappings would then not add the keyboard mappings (since that uses DItoGI), and we'd end up with keyboard buttons half-mapped.
This commit is contained in:
@@ -652,6 +652,7 @@ static const RString DEVICE_INPUT_SEPARATOR = ":"; // this isn't used in any key
|
|||||||
void InputMapper::ReadMappingsFromDisk()
|
void InputMapper::ReadMappingsFromDisk()
|
||||||
{
|
{
|
||||||
m_mappings.ReadMappings( m_pInputScheme, SpecialFiles::KEYMAPS_PATH, false );
|
m_mappings.ReadMappings( m_pInputScheme, SpecialFiles::KEYMAPS_PATH, false );
|
||||||
|
UpdateTempDItoGI();
|
||||||
|
|
||||||
AddDefaultMappingsForCurrentGameIfUnmapped();
|
AddDefaultMappingsForCurrentGameIfUnmapped();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user