public KeyBindingTester(SimultaneousBindingMode concurrency) { RelativeSizeAxes = Axes.Both; testButtons = Enum.GetValues(typeof(TestAction)).Cast <TestAction>().Select(t => { if (t.ToString().Contains("Wheel")) { return(new ScrollTestButton(t, concurrency)); } else { return(new TestButton(t, concurrency)); } }).ToArray(); Children = new Drawable[] { new SpriteText { Text = concurrency.ToString(), }, new TestInputManager(concurrency) { Y = 30, RelativeSizeAxes = Axes.Both, Child = new FillFlowContainer { RelativeSizeAxes = Axes.Both, Children = testButtons } }, }; }
public KeyBindingTester(SimultaneousBindingMode concurrency) { RelativeSizeAxes = Axes.Both; Children = new Drawable[] { new SpriteText { Text = concurrency.ToString(), }, new TestInputManager(concurrency) { Y = 30, RelativeSizeAxes = Axes.Both, Child = new FillFlowContainer { RelativeSizeAxes = Axes.Both, ChildrenEnumerable = Enum.GetValues(typeof(TestAction)).Cast <TestAction>().Select(t => new TestButton(t)) } }, }; }