コード例 #1
0
ファイル: XboxController.cs プロジェクト: nodswal/XOutput
 public void Start(IXboxEmulator emulator)
 {
     device = emulator.CreateXboxDevice();
 }
コード例 #2
0
 public XboxInputRequestHandler(CloseFunction closeFunction, SenderFunction senderFunction, XboxDevice device, EmulatedControllersService emulatedControllersService, DeviceDisconnectedEventHandler disconnectedEventHandler) : base(closeFunction, senderFunction)
 {
     this.device = device;
     this.emulatedControllersService = emulatedControllersService;
     this.disconnectedEventHandler   = disconnectedEventHandler;
     device.FeedbackEvent           += FeedbackEvent;
 }
コード例 #3
0
 public XboxInputMessageHandler(XboxDevice device, DeviceDisconnectedEvent disconnectedEventHandler)
 {
     this.device = device;
     this.disconnectedEventHandler = disconnectedEventHandler;
 }
コード例 #4
0
 public XboxFeedbackMessageHandler(XboxDevice device, SenderFunction <XboxFeedbackMessage> senderFunction)
 {
     this.device           = device;
     this.senderFunction   = senderFunction;
     device.FeedbackEvent += FeedbackEvent;
 }
コード例 #5
0
 public XboxInputMessageHandler(XboxDevice device)
 {
     this.device = device;
 }