Пример #1
0
 private void PowerOff()
 {
     XBox360.PowerOffGamepads();
     Hide();
 }
Пример #2
0
 private static bool AnyGamepadHasButton(XBox360GamepadButton button)
 {
     return(XBox360.GetGamepads().Any(gamepad => gamepad.WButtons == button));
 }