Invert GMLscripts.com

device_is_desktop

Returns whether or not the current device is a desktop, workstation or laptop.

if (device_is_desktop()) {
    // Only show the windowed option if we are on a desktop
    instWindowedSetting.visible = true;
}
device_is_desktop()
Returns whether or not the current device is a desktop, workstation or laptop.
COPY/// device_is_desktop()
//
//  Returns whether or not the current device is a desktop,
//  workstation or laptop. You can use this to generalize a
//  format for the game based on the approximate user setup.
//
/// GMLscripts.com/license
{
    return 
        os_type == os_windows or
        os_type == os_win8native or
        os_type == os_macosx or
        os_type == os_linux;
}

Contributors: RaniSputnik

GitHub: View · Commits · Blame · Raw