private void appendConnectionList(List <KeymapInput> list, Keymap keymap, int wiimote, bool defaultKeymap, Panel container) { foreach (KeymapInput input in list) { KeymapOutConfig config = keymap.getConfigFor(wiimote, input.Key); if (config != null) { KeymapConnectionRow row = new KeymapConnectionRow(input, config, defaultKeymap); row.OnConfigChanged += connectionRow_OnConfigChanged; row.OnDragStart += output_OnDragStart; row.OnDragStop += output_OnDragStop; container.Children.Add(row); } } }
private void appendConnectionList(List<KeymapInput> list, Keymap keymap, int wiimote, bool defaultKeymap, Panel container) { foreach (KeymapInput input in list) { KeymapOutConfig config = keymap.getConfigFor(wiimote, input.Key); if (config != null) { KeymapConnectionRow row = new KeymapConnectionRow(input, config, defaultKeymap); row.OnConfigChanged += connectionRow_OnConfigChanged; row.OnDragStart += output_OnDragStart; row.OnDragStop += output_OnDragStop; container.Children.Add(row); } } }