Godot platform desktop

From thedivergentai/GD-Agentic-Skills · View interactive version

Godot platform desktop is an AI agent skill from the GitHub repository thedivergentai/GD-Agentic-Skills. Expert blueprint for desktop platforms (Windows/Linux/macOS) covering keyboard/mouse controls, settings menus, window management (fullscreen, resolution), keybind remapping, and Steam integration. Use when targeting PC platforms or implementing desktop-specific features. Keywords desktop, Windows, L

How to use this skill

Skill file

Platform: Desktop

Settings flexibility, window management, and kb/mouse precision define desktop gaming.

NEVER Do (Expert Desktop Rules)

Window & Display

Input & Persistence

Performance & Integration


Available Scripts

MANDATORY: Read the appropriate script before implementing the corresponding pattern. Do not paste inline settings/rebind/Steam tutorials — the scripts are the golden path.

[desktop_window_manager.gd](scripts/desktop_window_manager.gd)

Expert DPI-aware multi-monitor window positioning using DisplayServer.

[desktop_settings_persistent.gd](scripts/desktop_settings_persistent.gd)

Production settings persistence using ConfigFile for persistent INI data.

[physical_input_rebinder.gd](scripts/physical_input_rebinder.gd)

Expert positional rebind system using physical_keycode for AZERTY/Dvorak.

[platform_sdk_wrapper.gd](scripts/platform_sdk_wrapper.gd)

Safe PC SDK singleton wrapper (Steamworks/Epic) with crash guards.

[native_dialog_helper.gd](scripts/native_dialog_helper.gd)

Expert native OS file dialogs and system alerts logic.

[secondary_window_spawner.gd](scripts/secondary_window_spawner.gd)

True multi-window management for secondary Viewports/Windows.

[graceful_shutdown_handler.gd](scripts/graceful_shutdown_handler.gd)

Safe close-request interceptor for data flushing and exit guards.

[low_processor_eco_mode.gd](scripts/low_processor_eco_mode.gd)

Eco mode optimization for desktop tools and launchers.

[desktop_performance_monitor.gd](scripts/desktop_performance_monitor.gd)

OS-level hardware detection for dynamic graphics presets.

[native_shell_executor.gd](scripts/native_shell_executor.gd)

Expert native shell command execution and output capture.


Desktop Golden Path (MANDATORY scripts)

  1. Resolution / stretch — use the mini-tree below, then MANDATORY desktop_window_manager.gd.
  2. Window / DPI — MANDATORY desktop_window_manager.gd: multi-monitor position, scale, mode restore.
  3. ConfigFile settings — MANDATORY desktop_settings_persistent.gd: graphics/audio/window under user://.
  4. Physical rebinds — MANDATORY physical_input_rebinder.gd: physical_keycode only.
  5. Close flush — MANDATORY graceful_shutdown_handler.gd: NOTIFICATION_WM_CLOSE_REQUEST → save → quit.
  6. Store SDK — MANDATORY platform_sdk_wrapper.gd before any store call: if Engine.has_singleton("Steam") → Steam API; elif Engine.has_singleton("EOS") → Epic; else no-op stub. Gate features with export feature tags (steam / epic).

Resolution / stretch mini-tree

| Player need | Window mode | Script hook |

| :--- | :--- | :--- |

| Fullscreen game, alt-tab friendly | WINDOW_MODE_FULLSCREEN (borderless) | desktop_window_manager.gd |

| Exclusive fullscreen (lowest latency) | WINDOW_MODE_EXCLUSIVE_FULLSCREEN | Same — persist choice in ConfigFile |

| Windowed / multi-monitor drag | WINDOW_MODE_WINDOWED + usable rect / DPI scale | Same + desktop_settings_persistent.gd |

CI smoke: headless --path . --quit-after 1 with settings round-trip write/read under user:// before merge (pairs with godot-export-builds).

Expert Callouts (keep short — not full tutorials)

1. Alt-Tab stuck-input guard

On NOTIFICATION_APPLICATION_FOCUS_OUT, pause and Input.action_release held movement actions so OS-swallowed key-ups do not strand velocity.

2. Desktop launcher note

Lightweight launcher projects may OS.create_process the main pack after writing user://settings.cfg; pair with low_processor_eco_mode.gd while idle in menus.

Deep dives (on demand)

Reference

Progressive disclosure: open Official Documentation links only when researching a specific API;

load Related Skills when routing work to a peer domain — do not preload the whole lattice.

Official Documentation

Related Skills

Prerequisites
Complements
Downstream / consumers
Master
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.