Пример #1
0
        private void ManageGameControllerType(GameControllerDetector.GameControllerType currentControllerType)
        {
            switch (currentControllerType)
            {
            case GameControllerDetector.GameControllerType.GAMEPAD:
                GamepadTextBlock.Visibility     = Visibility.Visible;
                MediaRemoteTextBlock.Visibility = Visibility.Collapsed;
                break;

            case GameControllerDetector.GameControllerType.MEDIAREMOTE:
                GamepadTextBlock.Visibility     = Visibility.Collapsed;
                MediaRemoteTextBlock.Visibility = Visibility.Visible;
                break;
            }
        }
Пример #2
0
 private void Instance_GameControllerChanged(object sender, GameControllerDetector.GameControllerType e)
 {
     ManageGameControllerType(GameControllerDetector.Instance.CurrentControllerType);
 }