예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
            }
        }