1
0
Fork 0

Only initialize the mapper once during startup

This commit is contained in:
krcroft 2020-03-20 18:28:56 -07:00 committed by Patryk Obara
parent fba15b997e
commit a1a3e0203d
3 changed files with 88 additions and 50 deletions

View file

@ -2823,8 +2823,12 @@ int main(int argc, char* argv[]) {
}
}
/* Init the keyMapper */
if (control->cmdline->FindExist("-startmapper")) MAPPER_RunInternal();
// Apply key bindings only after all subsystems have added them
MAPPER_BindKeys();
// With the default key binds in place, render the mapper UI if requested
if (control->cmdline->FindExist("-startmapper"))
MAPPER_DisplayUI();
/* Start up main machine */
control->StartUp();
/* Shutdown everything */