diff --git a/BizHawk.MultiClient/config/InputConfig.cs b/BizHawk.MultiClient/config/InputConfig.cs index 2157f4da23..41ba9a5832 100644 --- a/BizHawk.MultiClient/config/InputConfig.cs +++ b/BizHawk.MultiClient/config/InputConfig.cs @@ -12,7 +12,7 @@ namespace BizHawk.MultiClient { //TODO: //Sizing event should change prevWidth & prevHeight - + //Remove AppendMapping and TruncateMapping functions public partial class InputConfig : Form { @@ -42,19 +42,16 @@ namespace BizHawk.MultiClient private string TruncateButtonMapping(string button) { - //all config button mappings have the name followed by a comma & space, then key mapping, remove up through the space - int x = button.LastIndexOf(','); - if (x != -1) - return button.Substring(x + 2, button.Length - (x + 2)); - else - return ""; + //adelikat: This function is a relic from before mappings were saved via JSON, this function should be squashed + return button; //.Substring(x + 2, button.Length - (x + 2)); } private string AppendButtonMapping(string button, string oldmap) { - int x = oldmap.LastIndexOf(','); - if (x != -1) - return oldmap.Substring(0, x + 2) + button; - else + //adelikat: Another relic, remove this + //int x = oldmap.LastIndexOf(','); + //if (x != -1) + // return oldmap.Substring(0, x + 2) + button; + //else return button; } diff --git a/BizHawk.MultiClient/config/InputWidget.cs b/BizHawk.MultiClient/config/InputWidget.cs index 3c461813ff..a72a51ef6c 100644 --- a/BizHawk.MultiClient/config/InputWidget.cs +++ b/BizHawk.MultiClient/config/InputWidget.cs @@ -22,7 +22,9 @@ namespace BizHawk.MultiClient } else { - Text = Bindings[0].ToString(); + Text = ""; + for (int x = 0; x < Bindings.Count; x++) + Text += Bindings[x].ToString(); } Update(); }