Exemple #1
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", "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 = AxisRange.Min,
                 MaxValue = AxisRange.Max
             },
             new SingleAxisSchema(328, 12, controller, "R")
             {
                 DisplayName = "R",
                 TargetSize = new Size(128, 55),
                 MinValue = AxisRange.Min,
                 MaxValue = AxisRange.Max
             }
         }
     });
 }
Exemple #2
0
 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", "S"),
             new ButtonSchema(127, 246, controller, "B"),
             new ButtonSchema(138, 269, controller, "A"),
             new ButtonSchema(173, 210, controller, "C Up")
             {
                 Icon = VGamepadButtonImage.YellowArrN
             },
             new ButtonSchema(173, 231, controller, "C Down")
             {
                 Icon = VGamepadButtonImage.YellowArrS
             },
             new ButtonSchema(152, 221, controller, "C Left")
             {
                 Icon = VGamepadButtonImage.YellowArrW
             },
             new ButtonSchema(194, 221, controller, "C Right")
             {
                 Icon = VGamepadButtonImage.YellowArrE
             },
             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 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", "s"),
             new ButtonSchema(92, 39, controller, "Start", "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")
         }
     });
 }
Exemple #4
0
 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", "*"),
         new ButtonSchema(50, 154, controller, "0"),
         new ButtonSchema(73, 154, controller, "Pound", "#")
     });
 }
Exemple #5
0
 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", "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")
         }
     });
 }
Exemple #6
0
 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 = VGamepadButtonImage.Square
             },
             new ButtonSchema(174, 55, controller, "Triangle")
             {
                 Icon = VGamepadButtonImage.Triangle
             },
             new ButtonSchema(195, 67, controller, "Circle")
             {
                 Icon = VGamepadButtonImage.Circle
             },
             new ButtonSchema(174, 76, controller, "Cross")
             {
                 Icon = VGamepadButtonImage.Cross
             },
             new ButtonSchema(112, 67, controller, "Start", "S"),
             new ButtonSchema(90, 67, controller, "Select", "s")
         }
     });
 }
Exemple #7
0
 // Gambatte Controller
 private static PadSchema StandardController()
 {
     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(122, 34, "B"),
             new ButtonSchema(146, 34, "A"),
             new ButtonSchema(52, 34, "Select")
             {
                 DisplayName = "s"
             },
             new ButtonSchema(74, 34, "Start")
             {
                 DisplayName = "S"
             }
         }
     });
 }
Exemple #8
0
        private static PadSchema Keyboard()
        {
            return(new PadSchema
            {
                DisplayName = "Keyboard",
                Size = new Size(390, 150),
                Buttons = new[]
                {
                    /************************** Row 1 **************************/
                    new ButtonSchema(10, 18, "Escape")
                    {
                        DisplayName = "Esc"
                    },
                    new ButtonSchema(46, 18, "1"),
                    new ButtonSchema(70, 18, "2"),
                    new ButtonSchema(94, 18, "3"),
                    new ButtonSchema(118, 18, "4"),
                    new ButtonSchema(142, 18, "5"),
                    new ButtonSchema(166, 18, "6"),
                    new ButtonSchema(190, 18, "7"),
                    new ButtonSchema(214, 18, "8"),
                    new ButtonSchema(238, 18, "9"),
                    new ButtonSchema(262, 18, "0"),
                    new ButtonSchema(286, 18, "-"),
                    new ButtonSchema(307, 18, "="),
                    new ButtonSchema(331, 18, "Delete"),

                    /************************** Row 2 **************************/
                    new ButtonSchema(10, 42, "Tab")
                    {
                        DisplayName = " Tab "
                    },
                    new ButtonSchema(52, 42, "Q"),
                    new ButtonSchema(78, 42, "W"),
                    new ButtonSchema(106, 42, "E"),
                    new ButtonSchema(130, 42, "R"),
                    new ButtonSchema(156, 42, "T"),
                    new ButtonSchema(180, 42, "Y"),
                    new ButtonSchema(204, 42, "U"),
                    new ButtonSchema(230, 42, "I"),
                    new ButtonSchema(250, 42, "O"),
                    new ButtonSchema(276, 42, "P"),
                    new ButtonSchema(302, 42, "["),
                    new ButtonSchema(325, 42, "]"),
                    new ButtonSchema(349, 42, "\\")
                    {
                        DisplayName = " \\ "
                    },

                    /************************** Row 3 **************************/
                    new ButtonSchema(10, 66, "Control")
                    {
                        DisplayName = " Control "
                    },
                    new ButtonSchema(66, 66, "A"),
                    new ButtonSchema(90, 66, "S"),
                    new ButtonSchema(114, 66, "D"),
                    new ButtonSchema(140, 66, "F"),
                    new ButtonSchema(164, 66, "G"),
                    new ButtonSchema(190, 66, "H"),
                    new ButtonSchema(216, 66, "J"),
                    new ButtonSchema(238, 66, "K"),
                    new ButtonSchema(262, 66, "L"),
                    new ButtonSchema(286, 66, ";"),
                    new ButtonSchema(307, 66, "'"),
                    new ButtonSchema(328, 66, "Return"),

                    /************************** Row 4 **************************/
                    new ButtonSchema(10, 90, "Shift")
                    {
                        DisplayName = "     Shift     "
                    },
                    new ButtonSchema(80, 90, "Z"),
                    new ButtonSchema(106, 90, "X"),
                    new ButtonSchema(130, 90, "C"),
                    new ButtonSchema(154, 90, "V"),
                    new ButtonSchema(178, 90, "B"),
                    new ButtonSchema(202, 90, "N"),
                    new ButtonSchema(226, 90, "M"),
                    new ButtonSchema(252, 90, ","),
                    new ButtonSchema(272, 90, "."),
                    new ButtonSchema(292, 90, "/"),
                    new ButtonSchema(315, 90, "Shift")
                    {
                        DisplayName = "    Shift    "
                    },

                    /************************** Row 5 **************************/

                    new ButtonSchema(10, 114, "Caps Lock")
                    {
                        DisplayName = "Caps"
                    },
                    new ButtonSchema(52, 114, "`")
                    {
                        DisplayName = "~"
                    },
                    new ButtonSchema(96, 114, "White Apple")
                    {
                        DisplayName = "<"
                    },
                    new ButtonSchema(120, 114, "Space")
                    {
                        DisplayName = "                Space                "
                    },
                    new ButtonSchema(265, 114, "Black Apple")
                    {
                        DisplayName = ">"
                    },
                    ButtonSchema.Left(289, 114),
                    ButtonSchema.Right(311, 114),
                    ButtonSchema.Down(333, 114),
                    ButtonSchema.Up(355, 114)
                }
            });
        }