| 123456789101112131415161718192021222324252627 |
- //-----------------------------------------------------------------------------
- // UIUtilty.cs
- //
- // Microsoft XNA Community Game Platform
- // Copyright (C) Microsoft Corporation. All rights reserved.
- //-----------------------------------------------------------------------------
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace NetRumble
- {
- public static class UIUtility
- {
- /// <summary>
- /// Indicates if the game is running on a mobile platform.
- /// </summary>
- public readonly static bool IsMobile = OperatingSystem.IsAndroid() || OperatingSystem.IsIOS();
- /// <summary>
- /// Indicates if the game is running on a desktop platform.
- /// </summary>
- public readonly static bool IsDesktop = OperatingSystem.IsMacOS() || OperatingSystem.IsLinux() || OperatingSystem.IsWindows();
- }
- }
|