Only initialize the mapper once during startup
This commit is contained in:
parent
fba15b997e
commit
a1a3e0203d
3 changed files with 88 additions and 50 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue