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:
Glenn Maynard
2008-06-06 23:40:03 +00:00
parent 1a31c337c6
commit 1414ff7c19
+1
View File
@@ -652,6 +652,7 @@ static const RString DEVICE_INPUT_SEPARATOR = ":"; // this isn't used in any key
void InputMapper::ReadMappingsFromDisk()
{
m_mappings.ReadMappings( m_pInputScheme, SpecialFiles::KEYMAPS_PATH, false );
UpdateTempDItoGI();
AddDefaultMappingsForCurrentGameIfUnmapped();
}