private static PadSchema Mouse(int controller) { var range = new AxisSpec((-127).RangeTo(127), 0); return(new PadSchema { Size = new Size(345, 225), Buttons = new PadSchemaControl[] { new AnalogSchema(6, 14, $"P{controller} Motion Left / Right") { SecondaryName = $"P{controller} Motion Up / Down", Spec = range, SecondarySpec = range }, new ButtonSchema(275, 15, controller, "Left Button") { DisplayName = "Left" }, new ButtonSchema(275, 45, controller, "Right Button") { DisplayName = "Right" } } }); }
private static PadSchema ConsoleButtons(AxisSpec diskRange) { return(new ConsoleSchema { Size = new Size(327, 100), Buttons = new PadSchemaControl[] { new ButtonSchema(10, 15, "Reset"), new ButtonSchema(58, 15, "Power"), new ButtonSchema(108, 15, "Open Tray"), new ButtonSchema(175, 15, "Close Tray"), new SingleAxisSchema(10, 35, "Disk Index") { MinValue = diskRange.Min, MaxValue = diskRange.Max, TargetSize = new Size(310, 60) }, new ButtonSchema(242, 15, "P13 Smpc Reset") { DisplayName = "Smpc Reset" } } }); }