
sh0ckfr/universal-dear-imgui-hook
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
DirectX 12/11/10/9、OpenGL、Vulkanのユニバーサル・ディール・インフォグ・ホック。 ゲームデバッグおよび制御のためのNamedPipeによって統合されたMCPを特色にするWindows、LinuxおよびSteamのデッキと互換性がある.
概要
別のアプリケーション内でインターフェイスを描画する Dear ImGui オーバーレイ, どのグラフィック API を使用しても, Claude Code などの AI アシスタントは、MCP を介してローカル名付きパイプや Unix ソケットを介してゲームを見て再生することができます. 実行時に API が検出されます。一度ビルドし、どこにでも注入します。 ワインまたはプロトンで動作するWindowsゲームは、Windows DLLを使用します。 - : バックエンドはフレームを提示する最初のAPIから選択されます。 ゲームがグラフィックを初期化する前後に注入します。 - : MCP とローカル名付きパイプ (Windows) または Unix ソケット (Linux) を介して、Claude コードなどのアシスタントは、ゲームを見たり、プレーヤーに書き込み、キーを押します。 - : コントローラーの入力、またはL3 + R3は、メニューを開きます。 F11は、オーバーレイを削除し、DLLをアンロードします。 キーは例/config.cpp の設定です。 メニューが開いている間、キーボード、マウス、コントローラーの入力(Windows)、XInput コントローラーはメニューを移動しません.
概要(AI 翻訳)
別のアプリケーション内でインターフェイスを描画する Dear ImGui オーバーレイ, どのグラフィック API を使用しても, Claude Code などの AI アシスタントは、MCP を介してローカル名付きパイプや Unix ソケットを介してゲームを見て再生することができます. 実行時に API が検出されます。一度ビルドし、どこにでも注入します。
| API | Windows (x86, x64) | Linux (x86-64, ARM64) | | お問い合わせ | | 直接3D 9、9Ex | :white check mark | お問い合わせ | | 直接3D 10, 11, 12 | :white check mark | お問い合わせ | | ヴルカン | :white check mark: | :white check mark: | | OpenGL 3.0+ | :white check mark: (WGL) | :white check mark: (GLX, EGL) |
ワインまたはプロトンで動作するWindowsゲームは、Windows DLLを使用します。
コンテンツ
- 特徴
- クイックスタート
- 使用法:Windows、Linux、設定、図書館としてあなたのメニュー、
- AIアシスタントによるリモートコントロール
- APIの
- 使い方
- 建物
- テスト
- 貢献
- 制限事項
- サポート
セクションは、 ▶ をクリックして展開します。
##特徴
-すべての API の 1 つのライブラリ: バックエンドは、フレームを提示する最初の API から選択されます。 ゲームがグラフィックを初期化する前後に注入します.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Universal-Dear-ImGui-Hook
A Dear ImGui overlay that draws your interface inside another application, whatever graphics API it uses, and lets an AI assistant such as Claude Code see and play the game through MCP over a local named pipe or Unix socket. The API is detected at runtime: build once, inject anywhere.
| API | Windows (x86, x64) | Linux (x86-64, ARM64) |
|---|---|---|
| Direct3D 9, 9Ex | :white_check_mark: | NOT REQUIRED |
| Direct3D 10, 11, 12 | :white_check_mark: | NOT REQUIRED |
| Vulkan | :white_check_mark: | :white_check_mark: |
| OpenGL 3.0+ | :white_check_mark: (WGL) | :white_check_mark: (GLX, EGL) |
Windows games running under Wine or Proton use the Windows DLL.
Contents
- Features
- Quick start
- Usage: Windows, Linux, settings, your menu, as a library
- Remote control by an AI assistant
- API
- How it works
- Building
- Tests
- Contributing
- Limitations
- Support
Sections marked with ▶ unfold on click.
Features
- One library for every API: the backend is picked from the first API that presents a frame. Inject before or after the game initializes its graphics.
- Remote control by an AI assistant: through MCP and a local named pipe (Windows) or Unix socket (Linux), an assistant such as Claude Code sees the game, writes to the player over it and presses its keys.
- Menu input:
INSERT, or L3 + R3 on a controller, opens the menu;F11removes the overlay and unloads the DLL. The keys are settings inexample/config.cpp. While the menu is open the game sees no keyboard, mouse or controller input (Windows), and an XInput controller navigates the menu. - No crash from the overlay (Windows, MSVC builds): an exception in the overlay, from a renderer backend or the menu code, removes it instead of taking the game down; the menu key brings it back.
- Images and frame capture:
uih::CreateTexture()turns RGBA pixels into an image forImGui::Image(), anduih::CaptureFrame()copies what the game draws, without the overlay, on every backend. - Several windows: when the game presents to more than one window or swap chain, the overlay stays on one of them and follows the focus.
- Readable on any display: the interface follows the DPI of the game window, or a fixed scale, with correct colors on sRGB and floating-point back buffers.
- No injector needed: the DLL can be loaded as
dinput8.dll, and the Linux library withLD_PRELOAD.
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"game": { "command": "python", "args": ["C:/path/to/Universal-Dear-ImGui-Hook/remote/uih_mcp.py"] }
}
}