public FakeAnalogController(int portNum)
 {
     PortNum    = portNum;
     Definition = new ControllerDefinition {
         BoolButtons = BaseBoolDefinition.Select(b => $"P{PortNum} {b}").ToList()
     }
     .AddXYPair($"P{PortNum} Disc {{0}}", AxisPairOrientation.RightAndUp, (-127).RangeTo(127), 0);                     //TODO verify direction against hardware
 }
Ejemplo n.º 2
0
 public ColecoSuperActionController(int portNum)
 {
     PortNum    = portNum;
     Definition = new ControllerDefinition("(ColecoVision Basic Controller fragment)")
     {
         BoolButtons = BaseBoolDefinition.Select(b => $"P{PortNum} {b}").ToList()
     }
     .AddXYPair($"P{PortNum} Disc {{0}}", AxisPairOrientation.RightAndUp, (-127).RangeTo(127), 0);                     //TODO verify direction against hardware
 }
 public FakeAnalogController(int portNum)
 {
     PortNum    = portNum;
     Definition = new ControllerDefinition
     {
         BoolButtons = BaseBoolDefinition
                       .Select(b => "P" + PortNum + " " + b)
                       .ToList(),
         AxisControls = { "P" + PortNum + " Disc X", "P" + PortNum + " Disc Y" },
         AxisRanges   = ControllerDefinition.CreateAxisRangePair(-127, 0, 127, ControllerDefinition.AxisPairOrientation.RightAndUp)               //TODO verify direction against hardware
     };
 }
Ejemplo n.º 4
0
 public FakeAnalogController(int portNum)
 {
     PortNum    = portNum;
     Definition = new ControllerDefinition
     {
         BoolButtons = BaseBoolDefinition
                       .Select(b => "P" + PortNum + " " + b)
                       .ToList(),
         FloatControls = { "P" + PortNum + " Disc X", "P" + PortNum + " Disc Y" },
         FloatRanges   = { new[] { -127.0f, 0, 127.0f }, new[] { -127.0f, 0, 127.0f } }
     };
 }
Ejemplo n.º 5
0
 public ColecoSuperActionController(int portNum)
 {
     PortNum    = portNum;
     Definition = new ControllerDefinition
     {
         BoolButtons = BaseBoolDefinition
                       .Select(b => "P" + PortNum + " " + b)
                       .ToList(),
         FloatControls = { "P" + PortNum + " Disc X" },
         FloatRanges   = { new[] { -360.0f, 0, 360.0f } }
     };
 }