Example #1
0
 public XBoxController(string portName)
 {
     xboxConnection       = new XBoxConnection(portName);
     xboxButtons          = new XBoxButtons(xboxConnection);
     xboxDPad             = new XBoxDPad(xboxConnection);
     xboxTriggers         = new XBoxTriggers(xboxConnection);
     xboxThumbSticks      = new XBoxThumbSticks(xboxConnection);
     xboxControllerConfig = new XBoxControllerConfiguration(xboxConnection);
     CalibrationEnabled   = false;
     IsWireless           = false;
 }
Example #2
0
 public XBoxController(string portName)
 {
     xboxConnection = new XBoxConnection(portName);
     xboxButtons = new XBoxButtons(xboxConnection);
     xboxDPad = new XBoxDPad(xboxConnection);
     xboxTriggers = new XBoxTriggers(xboxConnection);
     xboxThumbSticks = new XBoxThumbSticks(xboxConnection);
     xboxControllerConfig = new XBoxControllerConfiguration(xboxConnection);
     CalibrationEnabled = false;
     IsWireless = false;
 }