Utility functions related to specific platforms.
Static methods
staticdetectHostPlatform():Null<HostPlatform>
Detects and returns the current host platform.
Always returns HTML5 on web, regardless of the computer running that browser.
Returns:
The host platform, or null if the platform could not be detected.
staticisMacOS():Bool
Returns true if the current platform is MacOS.
NOTE: Only use this for choosing modifier keys for shortcut hints.
Returns:
Whether the current platform is MacOS, or HTML5 running on MacOS.