Пример #1
0
 private async Task InitialiesGamepad()
 {
     gamepad = new QinetiQ.WindowsIOT.HidDevices.GameController.GamePad();
     await gamepad.DetectGameControllersAsync();
     gamepad.InputReceived += InputReceived;
     Debug.WriteLine("Inputreceived handler attached");
 }
Пример #2
0
 public async void DoWork()
 {
     gamepad = new GamePad();
     await gamepad.DetectGameControllersAsync();
     gamepad.InputReceived += InputReceived;
 }