void AddDeviceTreeItem(InputControlLayout layout, List <DeviceEntryForList> deviceList) { var entry = new DeviceEntryForList(); entry.name = layout.name; deviceList.Add(entry); foreach (var commonUsage in layout.commonUsages) { var entryWithUsage = new DeviceEntryForList(); entryWithUsage.name = layout.name; entryWithUsage.commonUsage = commonUsage; deviceList.Add(entryWithUsage); } }
private static void AddDeviceTreeItem(InputControlLayout layout, List <DeviceEntryForList> deviceList) { var entry = new DeviceEntryForList { name = layout.name }; deviceList.Add(entry); foreach (var commonUsage in layout.commonUsages) { var entryWithUsage = new DeviceEntryForList { name = layout.name, commonUsage = commonUsage }; deviceList.Add(entryWithUsage); } }