private static PadSchema AnalogController(int controller) { var controllerDefRanges = new FakeAnalogController(controller).Definition.AxisRanges; return(new PadSchema { DisplayName = $"Player {controller}", Size = new Size(280, 332), Buttons = StandardButtons(controller).Concat(new PadSchemaControl[] { new AnalogSchema(1, 121, $"P{controller} Disc X") { AxisRange = controllerDefRanges[0], SecondaryAxisRange = controllerDefRanges[1] } }) }); }
private static PadSchema AnalogController(int controller) { var defAxes = new FakeAnalogController(controller).Definition.Axes; return(new PadSchema { DisplayName = $"Player {controller}", Size = new Size(280, 332), Buttons = StandardButtons(controller).Concat(new PadSchemaControl[] { new AnalogSchema(1, 121, $"P{controller} Disc X") { Spec = defAxes.SpecAtIndex(0), SecondarySpec = defAxes.SpecAtIndex(1) } }) }); }
private static PadSchema AnalogController(int controller) { var controllerDefRanges = new FakeAnalogController(controller).Definition.FloatRanges; return(new PadSchema { DisplayName = $"Player {controller}", IsConsole = false, DefaultSize = new Size(280, 332), Buttons = new[] { new PadSchema.ButtonSchema { Name = $"P{controller} Key 1", DisplayName = "1", Location = new Point(91, 15), Type = PadSchema.PadInputType.Boolean }, new PadSchema.ButtonSchema { Name = $"P{controller} Key 2", DisplayName = "2", Location = new Point(117, 15), Type = PadSchema.PadInputType.Boolean }, new PadSchema.ButtonSchema { Name = $"P{controller} Key 3", DisplayName = "3", Location = new Point(143, 15), Type = PadSchema.PadInputType.Boolean }, new PadSchema.ButtonSchema { Name = $"P{controller} Key 4", DisplayName = "4", Location = new Point(91, 41), Type = PadSchema.PadInputType.Boolean }, new PadSchema.ButtonSchema { Name = $"P{controller} Key 5", DisplayName = "5", Location = new Point(117, 41), Type = PadSchema.PadInputType.Boolean }, new PadSchema.ButtonSchema { Name = $"P{controller} Key 6", DisplayName = "6", Location = new Point(143, 41), Type = PadSchema.PadInputType.Boolean }, new PadSchema.ButtonSchema { Name = $"P{controller} Key 7", DisplayName = "7", Location = new Point(91, 67), Type = PadSchema.PadInputType.Boolean }, new PadSchema.ButtonSchema { Name = $"P{controller} Key 8", DisplayName = "8", Location = new Point(117, 67), Type = PadSchema.PadInputType.Boolean }, new PadSchema.ButtonSchema { Name = $"P{controller} Key 9", DisplayName = "9", Location = new Point(143, 67), Type = PadSchema.PadInputType.Boolean }, new PadSchema.ButtonSchema { Name = $"P{controller} Clear", DisplayName = "C", Location = new Point(91, 93), Type = PadSchema.PadInputType.Boolean }, new PadSchema.ButtonSchema { Name = $"P{controller} Key 0", DisplayName = "0", Location = new Point(117, 93), Type = PadSchema.PadInputType.Boolean }, new PadSchema.ButtonSchema { Name = $"P{controller} Enter", DisplayName = "E", Location = new Point(143, 93), Type = PadSchema.PadInputType.Boolean }, new PadSchema.ButtonSchema { Name = $"P{controller} Top", DisplayName = "T", Location = new Point(68, 41), Type = PadSchema.PadInputType.Boolean }, new PadSchema.ButtonSchema { Name = $"P{controller} Top", DisplayName = "T", Location = new Point(166, 41), Type = PadSchema.PadInputType.Boolean }, new PadSchema.ButtonSchema { Name = $"P{controller} L", DisplayName = "L", Location = new Point(68, 67), Type = PadSchema.PadInputType.Boolean }, new PadSchema.ButtonSchema { Name = $"P{controller} R", DisplayName = "R", Location = new Point(166, 67), Type = PadSchema.PadInputType.Boolean }, new PadSchema.ButtonSchema { Name = $"P{controller} Disc X", AxisRange = controllerDefRanges[0], SecondaryAxisRange = controllerDefRanges[1], DisplayName = "", Location = new Point(1, 121), Type = PadSchema.PadInputType.AnalogStick } } }); }