Example #1
0
    public static Dictionary <KeyCode, KeyboardCommand> ConvertToKeyboardInputs(CommandKeyCodeDict lKeyboardControls)
    {
        Dictionary <KeyCode, KeyboardCommand> lKeyboardInputs = new Dictionary <KeyCode, KeyboardCommand>();

        foreach (KeyValuePair <KeyboardCommand, KeyCode> kpv in lKeyboardControls)
        {
            lKeyboardInputs.Add(kpv.Value, kpv.Key);
        }

        return(lKeyboardInputs);
    }
Example #2
0
 public void LoadKeyboardControls(CommandKeyCodeDict controls)
 {
     keyboardInputs = ConvertToKeyboardInputs(controls);
 }