private static PadSchema StandardController(int controller) { return new PadSchema { Size = new Size(174, 90), Buttons = new[] { ButtonSchema.Up(14, 12, controller), ButtonSchema.Down(14, 56, controller), ButtonSchema.Left(2, 34, controller), ButtonSchema.Right(24, 34, controller), new ButtonSchema(122, 34, controller, "B2") { DisplayName = "II" }, new ButtonSchema(146, 34, controller, "B1") { DisplayName = "I" }, new ButtonSchema(52, 34, controller, "Select") { DisplayName = "s" }, new ButtonSchema(74, 34, controller, "Run") { DisplayName = "R" } } }; }
private static PadSchema StandardController(int controller) { return(new PadSchema { Size = new Size(230, 100), Buttons = new[] { ButtonSchema.Up(14, 12, controller), ButtonSchema.Down(14, 56, controller), ButtonSchema.Left(2, 34, controller), ButtonSchema.Right(24, 34, controller), new ButtonSchema(72, 17, controller, "Mode 1: Set A", "1A"), new ButtonSchema(72, 40, controller, "Mode 2: Set A", "2A"), new ButtonSchema(102, 17, controller, "Mode 1: Set B", "1B"), new ButtonSchema(102, 40, controller, "Mode 2: Set B", "2B"), new ButtonSchema(140, 63, controller, "IV"), new ButtonSchema(166, 53, controller, "V"), new ButtonSchema(192, 43, controller, "VI"), new ButtonSchema(140, 40, controller, "I"), new ButtonSchema(166, 30, controller, "II"), new ButtonSchema(192, 20, controller, "III"), new ButtonSchema(77, 63, controller, "Select", "s"), new ButtonSchema(101, 63, controller, "Run", "R") } }); }
private static IEnumerable <ButtonSchema> StandardButtons(int controller) { return(new[] { ButtonSchema.Up(50, 11, controller), ButtonSchema.Down(50, 32, controller), ButtonSchema.Left(29, 22, controller), ButtonSchema.Right(71, 22, controller), new ButtonSchema(27, 85, controller, "1"), new ButtonSchema(50, 85, controller, "2"), new ButtonSchema(73, 85, controller, "3"), new ButtonSchema(27, 108, controller, "4"), new ButtonSchema(50, 108, controller, "5"), new ButtonSchema(73, 108, controller, "6"), new ButtonSchema(27, 131, controller, "7"), new ButtonSchema(50, 131, controller, "8"), new ButtonSchema(73, 131, controller, "9"), new ButtonSchema(27, 154, controller, "Star") { DisplayName = "*" }, new ButtonSchema(50, 154, controller, "0"), new ButtonSchema(73, 154, controller, "Pound") { DisplayName = "#" } }); }
private static IEnumerable <ButtonSchema> StandardButtons(int controller, bool isSms) { yield return(ButtonSchema.Up(14, 12, controller)); yield return(ButtonSchema.Down(14, 56, controller)); yield return(ButtonSchema.Left(2, 34, controller)); yield return(ButtonSchema.Right(24, 34, controller)); yield return(new ButtonSchema(122, 34, controller, "B1") { DisplayName = "1" }); yield return(new ButtonSchema(146, 34, controller, "B2") { DisplayName = "2" }); if (!isSms) { yield return(new ButtonSchema(134, 12, controller, "Start") { DisplayName = "S" }); } }
private static PadSchema StandardController() { return(new PadSchema { Size = new Size(222, 103), Buttons = new[] { ButtonSchema.Up(14, 36, "L_Up"), ButtonSchema.Down(14, 80, "L_Down"), ButtonSchema.Left(2, 58, "L_Left"), ButtonSchema.Right(24, 58, "L_Right"), new ButtonSchema(122, 58, "B"), new ButtonSchema(146, 58, "A"), new ButtonSchema(52, 58, "Select") { DisplayName = "s" }, new ButtonSchema(74, 58, "Start") { DisplayName = "S" }, ButtonSchema.Up(188, 36, "R_Up"), ButtonSchema.Down(188, 80, "R_Down"), ButtonSchema.Left(176, 58, "R_Left"), ButtonSchema.Right(198, 58, "R_Right"), new ButtonSchema(24, 8, "L"), new ButtonSchema(176, 8, "R") } }); }
private static PadSchema Wheel(int controller) { return(new PadSchema { DisplayName = "Wheel", Size = new Size(325, 100), Buttons = new PadSchemaControl[] { new SingleAxisSchema(8, 12, controller, "Wheel") { TargetSize = new Size(128, 55), MinValue = 0, MaxValue = 255 }, ButtonSchema.Up(150, 20, controller), ButtonSchema.Down(150, 43, controller), new ButtonSchema(180, 63, controller, "A"), new ButtonSchema(204, 53, controller, "B"), new ButtonSchema(228, 43, controller, "C"), new ButtonSchema(180, 40, controller, "X"), new ButtonSchema(204, 30, controller, "Y"), new ButtonSchema(228, 20, controller, "Z"), new ButtonSchema(268, 20, controller, "Start") } }); }
private static PadSchema Wheel(int controller) { return(new PadSchema { DisplayName = "Wheel", Size = new Size(325, 130), Buttons = new PadSchemaControl[] { new SingleAxisSchema(45, 70, controller, "Analog Left / Right") { TargetSize = new Size(256, 45), MinValue = 0, MaxValue = 65535, DisplayName = "Wheel" }, new ButtonSchema(15, 12, controller, "Z"), new ButtonSchema(42, 22, controller, "Y"), new ButtonSchema(69, 32, controller, "X"), new ButtonSchema(145, 32, controller, "Start"), new ButtonSchema(231, 32, controller, "A"), new ButtonSchema(258, 22, controller, "B"), new ButtonSchema(285, 12, controller, "C"), ButtonSchema.Left(122, 32, $"P{controller} L Gear Shift"), ButtonSchema.Right(185, 32, $"P{controller} R Gear Shift") } }); }
private static PadSchema StandardController() { return(new PadSchema { Size = new Size(194, 90), Buttons = new[] { ButtonSchema.Up(29, 17), ButtonSchema.Down(29, 61), ButtonSchema.Left(17, 39), ButtonSchema.Right(39, 39), new ButtonSchema(130, 39, "B"), new ButtonSchema(154, 39, "A"), new ButtonSchema(64, 39, "Select") { DisplayName = "s" }, new ButtonSchema(86, 39, "Start") { DisplayName = "S" }, new ButtonSchema(2, 12, "L"), new ButtonSchema(166, 12, "R") } }); }
private static PadSchema StandardController(int controller) { return(new PadSchema { Size = new Size(230, 100), Buttons = new[] { ButtonSchema.Up(34, 17, controller), ButtonSchema.Down(34, 61, controller), ButtonSchema.Left(22, 39, controller), ButtonSchema.Right(44, 39, controller), new ButtonSchema(74, 17, controller, "Mode 1"), new ButtonSchema(74, 40, controller, "Mode 2"), new ButtonSchema(77, 63, controller, "Select") { DisplayName = "s" }, new ButtonSchema(101, 63, controller, "Run") { DisplayName = "R" }, new ButtonSchema(140, 63, controller, "IV"), new ButtonSchema(166, 53, controller, "V"), new ButtonSchema(192, 43, controller, "VI"), new ButtonSchema(140, 40, controller, "I"), new ButtonSchema(166, 30, controller, "II"), new ButtonSchema(192, 20, controller, "III") } }); }
private static PadSchema StandardController(int controller) { return(new PadSchema { Size = new Size(250, 100), Buttons = new[] { ButtonSchema.Up(34, 17, controller), ButtonSchema.Down(34, 61, controller), ButtonSchema.Left(22, 39, controller), ButtonSchema.Right(44, 39, controller), new ButtonSchema(78, 52, controller, "Start") { DisplayName = "S" }, new ButtonSchema(110, 63, controller, "A"), new ButtonSchema(134, 53, controller, "B"), new ButtonSchema(158, 43, controller, "C"), new ButtonSchema(110, 40, controller, "X"), new ButtonSchema(134, 30, controller, "Y"), new ButtonSchema(158, 20, controller, "Z"), new ButtonSchema(2, 10, controller, "L"), new ButtonSchema(184, 10, controller, "R") } }); }
private static PadSchema StandardController(int controller) { return(new PadSchema { Size = new Size(174, 90), Buttons = new[] { ButtonSchema.Up(14, 12, controller), ButtonSchema.Down(14, 56, controller), ButtonSchema.Left(2, 34, controller), ButtonSchema.Right(24, 34, controller), new ButtonSchema(134, 12, controller, "Start") { DisplayName = "S" }, new ButtonSchema(122, 34, controller, "B1") { DisplayName = "1" }, new ButtonSchema(146, 34, controller, "B2") { DisplayName = "2" } } }); }
public IEnumerable <PadSchema> GetPadSchemas(IEmulator core) { yield return(new PadSchema { Size = new Size(194, 90), Buttons = new[] { ButtonSchema.Up(14, 12), ButtonSchema.Down(14, 56), ButtonSchema.Left(2, 34), ButtonSchema.Right(24, 34), new ButtonSchema(130, 62, "B"), new ButtonSchema(154, 62, "A"), new ButtonSchema(100, 12, "Option 1") { DisplayName = "1" }, new ButtonSchema(100, 62, "Option 2") { DisplayName = "2" }, new ButtonSchema(100, 37, "Pause") } }); }
private static PadSchema StandardController(int controller) { return(new PadSchema { DisplayName = $"Player {controller}", Size = new Size(174, 74), Buttons = new[] { ButtonSchema.Up(23, 15, controller), ButtonSchema.Down(23, 36, controller), ButtonSchema.Left(2, 24, controller), ButtonSchema.Right(44, 24, controller), new ButtonSchema(124, 24, controller, "B"), new ButtonSchema(147, 24, controller, "A"), new ButtonSchema(72, 24, controller, "Select") { DisplayName = "s" }, new ButtonSchema(93, 24, controller, "Start") { DisplayName = "S" } } }); }
private static PadSchema StandardController(int controller) { return(new PadSchema { Size = new Size(200, 90), Buttons = new[] { ButtonSchema.Up(34, 17, controller), ButtonSchema.Down(34, 61, controller), ButtonSchema.Left(22, 39, controller), ButtonSchema.Right(44, 39, controller), new ButtonSchema(2, 10, controller, "L"), new ButtonSchema(174, 10, controller, "R"), new ButtonSchema(70, 39, controller, "Select") { DisplayName = "s" }, new ButtonSchema(92, 39, controller, "Start") { DisplayName = "S" }, new ButtonSchema(121, 39, controller, "Y"), new ButtonSchema(145, 52, controller, "B"), new ButtonSchema(122, 15, controller, "X"), new ButtonSchema(146, 25, controller, "A") } }); }
private static PadSchema DualShockController(int controller) { var stickRanges = new[] { new AxisSpec(0.RangeTo(255), 128), new AxisSpec(0.RangeTo(255), 128, isReversed: true) }; return(new PadSchema { Size = new Size(500, 290), DisplayName = $"DualShock Player{controller}", Buttons = new PadSchemaControl[] { ButtonSchema.Up(32, 50, controller), ButtonSchema.Down(32, 71, controller), ButtonSchema.Left(11, 62, controller), ButtonSchema.Right(53, 62, controller), new ButtonSchema(3, 32, controller, "L1"), new ButtonSchema(191, 32, controller, "R1"), new ButtonSchema(3, 10, controller, "L2"), new ButtonSchema(191, 10, controller, "R2"), new ButtonSchema(72, 90, controller, "L3"), new ButtonSchema(130, 90, controller, "R3"), new ButtonSchema(148, 62, controller, "Square") { Icon = Properties.Resources.Square }, new ButtonSchema(169, 50, controller, "Triangle") { Icon = Properties.Resources.Triangle }, new ButtonSchema(190, 62, controller, "Circle") { Icon = Properties.Resources.Circle }, new ButtonSchema(169, 71, controller, "Cross") { Icon = Properties.Resources.Cross }, new ButtonSchema(112, 62, controller, "Start") { DisplayName = "S" }, new ButtonSchema(90, 62, controller, "Select") { DisplayName = "s" }, new AnalogSchema(3, 120, $"P{controller} LStick X") { Spec = stickRanges[0], SecondarySpec = stickRanges[1] }, new AnalogSchema(260, 120, $"P{controller} RStick X") { Spec = stickRanges[0], SecondarySpec = stickRanges[1] } } }); }
private static IEnumerable <ButtonSchema> ThreeButtons(int controller) { return(new[] { ButtonSchema.Up(14, 12, controller), ButtonSchema.Down(14, 56, controller), ButtonSchema.Left(2, 34, controller), ButtonSchema.Right(24, 34, controller), new ButtonSchema(98, 40, controller, "A"), new ButtonSchema(122, 40, controller, "B"), new ButtonSchema(146, 40, controller, "C"), new ButtonSchema(122, 12, controller, "Start", "S") }); }
private static PadSchema StandardController(int controller) { return(new PadSchema { Size = new Size(100, 100), Buttons = new[] { ButtonSchema.Up(14, 12, controller), ButtonSchema.Down(14, 56, controller), ButtonSchema.Left(2, 34, controller), ButtonSchema.Right(24, 34, controller), new ButtonSchema(74, 34, controller, "F") } }); }
private static PadSchema NeGcon(int controller) { return(new PadSchema { Size = new Size(343, 195), DisplayName = $"NeGcon Player{controller}", Buttons = new PadSchemaControl[] { ButtonSchema.Up(36, 83, controller), ButtonSchema.Down(36, 104, controller), ButtonSchema.Left(15, 95, controller), ButtonSchema.Right(57, 95, controller), new ButtonSchema(78, 118, controller, "Start") { DisplayName = "S" }, new ButtonSchema(278, 38, controller, "B"), new ButtonSchema(308, 55, controller, "A"), new ButtonSchema(308, 15, controller, "R"), new SingleAxisSchema(5, 15, controller, "L") { TargetSize = new Size(128, 55), MinValue = 0, MaxValue = 255 }, new SingleAxisSchema(125, 15, controller, "Twist", isVertical: true) { TargetSize = new Size(64, 178), MinValue = 0, MaxValue = 255 }, new SingleAxisSchema(180, 60, controller, "2") { DisplayName = "II", TargetSize = new Size(128, 55), MinValue = 0, MaxValue = 255 }, new SingleAxisSchema(220, 120, controller, "1") { DisplayName = "I", TargetSize = new Size(128, 55), MinValue = 0, MaxValue = 255 } } }); }
private static PadSchema JoystickController(int controller) { return(new PadSchema { DisplayName = $"Player {controller}", Size = new Size(174, 74), Buttons = new[] { ButtonSchema.Up(23, 15, controller), ButtonSchema.Down(23, 36, controller), ButtonSchema.Left(2, 24, controller), ButtonSchema.Right(44, 24, controller), new ButtonSchema(120, 24, controller, "Button", "1") } }); }
private static PadSchema ThreeDeeController(int controller) { var axisRanges = SaturnusControllerDeck.ThreeDeeAxisRanges; return(new PadSchema { Size = new Size(458, 285), Buttons = new PadSchemaControl[] { ButtonSchema.Up(290, 77, controller), ButtonSchema.Down(290, 121, controller), ButtonSchema.Left(278, 99, controller), ButtonSchema.Right(300, 99, controller), new ButtonSchema(334, 112, controller, "Start") { DisplayName = "S" }, new ButtonSchema(366, 123, controller, "A"), new ButtonSchema(390, 113, controller, "B"), new ButtonSchema(414, 103, controller, "C"), new ButtonSchema(366, 100, controller, "X"), new ButtonSchema(390, 90, controller, "Y"), new ButtonSchema(414, 80, controller, "Z"), new AnalogSchema(6, 74, $"P{controller} Stick Horizontal") { SecondaryName = $"P{controller} Stick Vertical", AxisRange = axisRanges[0], SecondaryAxisRange = axisRanges[1] }, new SingleAxisSchema(8, 12, controller, "Left Shoulder") { DisplayName = "L", TargetSize = new Size(128, 55), MinValue = 0, MaxValue = 255 }, new SingleAxisSchema(328, 12, controller, "Right Shoulder") { DisplayName = "R", TargetSize = new Size(128, 55), MinValue = 0, MaxValue = 255 } } }); }
private static PadSchema StandardController(int controller) { var controllerDefRanges = N64Input.N64ControllerDefinition.AxisRanges; return(new PadSchema { Size = new Size(275, 316), Buttons = new PadSchemaControl[] { ButtonSchema.Up(24, 230, $"P{controller} DPad U"), ButtonSchema.Down(24, 251, $"P{controller} DPad D"), ButtonSchema.Left(3, 242, $"P{controller} DPad L"), ButtonSchema.Right(45, 242, $"P{controller} DPad R"), new ButtonSchema(3, 185, controller, "L"), new ButtonSchema(191, 185, controller, "R"), new ButtonSchema(81, 269, controller, "Z"), new ButtonSchema(81, 246, controller, "Start") { DisplayName = "S" }, new ButtonSchema(127, 246, controller, "B"), new ButtonSchema(138, 269, controller, "A"), new ButtonSchema(173, 210, controller, "C Up") { Icon = Properties.Resources.YellowUp }, new ButtonSchema(173, 231, controller, "C Down") { Icon = Properties.Resources.YellowDown }, new ButtonSchema(152, 221, controller, "C Left") { Icon = Properties.Resources.YellowLeft }, new ButtonSchema(194, 221, controller, "C Right") { Icon = Properties.Resources.YellowRight }, new AnalogSchema(6, 14, $"P{controller} X Axis") { AxisRange = controllerDefRanges[0], SecondaryAxisRange = controllerDefRanges[1] } } }); }
private static PadSchema Controller() { return(new PadSchema { Size = new Size(174, 79), Buttons = new[] { ButtonSchema.Up(14, 12, 1), ButtonSchema.Down(14, 56, 1), ButtonSchema.Left(2, 34, 1), ButtonSchema.Right(24, 34, 1), new ButtonSchema(74, 34, 1, "B"), new ButtonSchema(98, 34, 1, "A"), new ButtonSchema(146, 12, 1, "Option", "O") } }); }
private static PadSchema Controller() { return new PadSchema { Size = new Size(174, 79), Buttons = new[] { ButtonSchema.Up(14, 12), ButtonSchema.Down(14, 56), ButtonSchema.Left(2, 34), ButtonSchema.Right(24, 34), new ButtonSchema(74, 34, "B"), new ButtonSchema(98, 34, "A"), new ButtonSchema(146, 12, "Option") { DisplayName = "O" } } }; }
private static PadSchema StandardController(int controller) { return(new PadSchema { Size = new Size(174, 79), Buttons = new[] { ButtonSchema.Up(14, 12, controller), ButtonSchema.Down(14, 56, controller), ButtonSchema.Left(2, 34, controller), ButtonSchema.Right(24, 34, controller), new ButtonSchema(122, 34, controller, "B"), new ButtonSchema(146, 34, controller, "A"), new ButtonSchema(52, 34, controller, "Select", "s"), new ButtonSchema(74, 34, controller, "Start", "S") } }); }
private static PadSchema StandardController(int controller) { return(new PadSchema { Size = new Size(200, 100), Buttons = new[] { ButtonSchema.Up(14, 12, controller), ButtonSchema.Down(14, 56, controller), ButtonSchema.Left(2, 34, controller), ButtonSchema.Right(24, 34, controller), Button(74, 34, controller, 1), Button(98, 34, controller, 2), Button(122, 34, controller, 3), Button(146, 34, controller, 4) } }); }
private static PadSchema StandardController(int controller) { return(new PadSchema { Size = new Size(275, 316), Buttons = new PadSchemaControl[] { ButtonSchema.Up(24, 230, $"P{controller} DPad U"), ButtonSchema.Down(24, 251, $"P{controller} DPad D"), ButtonSchema.Left(3, 242, $"P{controller} DPad L"), ButtonSchema.Right(45, 242, $"P{controller} DPad R"), new ButtonSchema(3, 185, controller, "L"), new ButtonSchema(191, 185, controller, "R"), new ButtonSchema(81, 269, controller, "Z"), new ButtonSchema(81, 246, controller, "Start") { DisplayName = "S" }, new ButtonSchema(127, 246, controller, "B"), new ButtonSchema(138, 269, controller, "A"), new ButtonSchema(173, 210, controller, "C Up") { Icon = Properties.Resources.YellowUp }, new ButtonSchema(173, 231, controller, "C Down") { Icon = Properties.Resources.YellowDown }, new ButtonSchema(152, 221, controller, "C Left") { Icon = Properties.Resources.YellowLeft }, new ButtonSchema(194, 221, controller, "C Right") { Icon = Properties.Resources.YellowRight }, new AnalogSchema(6, 14, $"P{controller} X Axis") { Spec = new AxisSpec((-128).RangeTo(127), 0), SecondarySpec = new AxisSpec((-128).RangeTo(127), 0) } } }); }
private static PadSchema ThreeDeeController(int controller) { return(new PadSchema { Size = new Size(458, 285), Buttons = new PadSchemaControl[] { ButtonSchema.Up(290, 77, $"P{controller} D-Pad Up"), ButtonSchema.Down(290, 121, $"P{controller} D-Pad Down"), ButtonSchema.Left(278, 99, $"P{controller} D-Pad Left"), ButtonSchema.Right(300, 99, $"P{controller} D-Pad Right"), new ButtonSchema(334, 112, controller, "Start") { DisplayName = "S" }, new ButtonSchema(366, 123, controller, "A"), new ButtonSchema(390, 113, controller, "B"), new ButtonSchema(414, 103, controller, "C"), new ButtonSchema(366, 100, controller, "X"), new ButtonSchema(390, 90, controller, "Y"), new ButtonSchema(414, 80, controller, "Z"), new AnalogSchema(6, 74, $"P{controller} Analog Left / Right") { SecondaryName = $"P{controller} Analog Up / Down", Spec = AxisRange, SecondarySpec = AxisRange }, new SingleAxisSchema(8, 12, controller, "L") { DisplayName = "L", TargetSize = new Size(128, 55), MinValue = 0, MaxValue = 255 }, new SingleAxisSchema(328, 12, controller, "R") { DisplayName = "R", TargetSize = new Size(128, 55), MinValue = 0, MaxValue = 255 } } }); }
private static PadSchema GamePadController(int controller) { return(new PadSchema { Size = new Size(240, 115), DisplayName = $"Gamepad Player{controller}", Buttons = new[] { ButtonSchema.Up(37, 55, controller), ButtonSchema.Down(37, 76, controller), ButtonSchema.Left(16, 67, controller), ButtonSchema.Right(58, 67, controller), new ButtonSchema(8, 37, controller, "L1"), new ButtonSchema(196, 37, controller, "R1"), new ButtonSchema(8, 15, controller, "L2"), new ButtonSchema(196, 15, controller, "R2"), new ButtonSchema(153, 67, controller, "Square") { Icon = Properties.Resources.Square }, new ButtonSchema(174, 55, controller, "Triangle") { Icon = Properties.Resources.Triangle }, new ButtonSchema(195, 67, controller, "Circle") { Icon = Properties.Resources.Circle }, new ButtonSchema(174, 76, controller, "Cross") { Icon = Properties.Resources.Cross }, new ButtonSchema(112, 67, controller, "Start") { DisplayName = "S" }, new ButtonSchema(90, 67, controller, "Select") { DisplayName = "s" } } }); }
private static PadSchema Famicom2ndController() { var controller = 2; return(new PadSchema { DisplayName = "Player 2", Size = new Size(174, 74), Buttons = new[] { ButtonSchema.Up(23, 15, controller), ButtonSchema.Down(23, 36, controller), ButtonSchema.Left(2, 24, controller), ButtonSchema.Right(44, 24, controller), new ButtonSchema(124, 24, controller, "B"), new ButtonSchema(147, 24, controller, "A"), new ButtonSchema(72, 24, controller, "Microphone", "Mic") } }); }
private static PadSchema ProLineController(int controller) { return(new PadSchema { DisplayName = $"Player {controller}", Size = new Size(174, 74), Buttons = new[] { ButtonSchema.Up(23, 15, controller), ButtonSchema.Down(23, 36, controller), ButtonSchema.Left(2, 24, controller), ButtonSchema.Right(44, 24, controller), new ButtonSchema(120, 24, controller, "Trigger") { DisplayName = "1" }, new ButtonSchema(145, 24, controller, "Trigger 2") { DisplayName = "2" } } }); }