Include an inputmap reload after loading all mods

Discussion in 'Mod Support' started by wondible, August 3, 2014.

  1. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Right now, every mod that adds keybindings has to run

    Code:
      api.Panel.message('', 'inputmap.reload');
    
    Loading multiple mods with keybindings will recalculate keybindings several times. So far I've been putting the keybindings in a global mod, and the reload in live_game, which seems to be where most keys are actually used. Better advice appreciated.

    Perhaps it could be set up so that the base input map deferred it's initial calculation until the first reload, so that people without mods wouldn't get an extra calculation.
    proeleert likes this.

Share This Page