UIUtility.cs 909 B

123456789101112131415161718192021222324252627
  1. //-----------------------------------------------------------------------------
  2. // UIUtilty.cs
  3. //
  4. // Microsoft XNA Community Game Platform
  5. // Copyright (C) Microsoft Corporation. All rights reserved.
  6. //-----------------------------------------------------------------------------
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Text;
  10. namespace NetRumble
  11. {
  12. public static class UIUtility
  13. {
  14. /// <summary>
  15. /// Indicates if the game is running on a mobile platform.
  16. /// </summary>
  17. public readonly static bool IsMobile = OperatingSystem.IsAndroid() || OperatingSystem.IsIOS();
  18. /// <summary>
  19. /// Indicates if the game is running on a desktop platform.
  20. /// </summary>
  21. public readonly static bool IsDesktop = OperatingSystem.IsMacOS() || OperatingSystem.IsLinux() || OperatingSystem.IsWindows();
  22. }
  23. }