Device
Device Information
Check if the device is mobile:
bool isMobile = MirraSDK.Device.IsMobile;
Get the operating system type:
SystemType systemType = MirraSDK.Device.SystemType;
Cursor Settings
Show or hide the cursor:
// show cursor
MirraSDK.Device.CursorVisible = true;
// hide cursor
MirraSDK.Device.CursorVisible = false;
Lock or unlock the cursor:
// lock cursor
MirraSDK.Device.CursorLock = CursorLockMode.Locked;
// unlock cursor
MirraSDK.Device.CursorLock = CursorLockMode.None;
Device Browser
Open a page in the browser:
MirraSDK.Device.OpenURL("https://example.com");