Skip to content

feat(devkit): add snapshot hotkey#541

Open
xq-r wants to merge 1 commit into
clshortfuse:mainfrom
xq-r:feat/snapshot-hotkey
Open

feat(devkit): add snapshot hotkey#541
xq-r wants to merge 1 commit into
clshortfuse:mainfrom
xq-r:feat/snapshot-hotkey

Conversation

@xq-r

@xq-r xq-r commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a configurable “Snapshot Hotkey” to the DevKit so snapshot captures can be triggered via a key press (with the binding stored in ReShade config), and surfaces build metadata in the Info pane.

Changes:

  • Introduces ImGuiKey ↔ Windows VK mapping utilities to display/bind a single-key hotkey.
  • Adds a read-only binding control in DevKit Settings (“Other”) and persists SnapshotHotkey to config.
  • Triggers QueueSnapshotCapture from OnPresent when the configured hotkey is pressed (for the selected device).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/addons/devkit/addon.cpp Outdated
Comment thread src/addons/devkit/addon.cpp

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a configurable keyboard hotkey to queue a snapshot capture from the RenoDX DevKit, integrating the binding UI into the settings panel and triggering captures during OnPresent for the currently selected device.

Changes:

  • Introduces a SnapshotHotkey setting (persisted via ReShade config) and related state for hotkey binding.
  • Adds ImGuiKey ↔ VK mapping utilities to display/bind a single-key hotkey in the overlay UI.
  • Triggers QueueSnapshotCapture when the bound hotkey is pressed (with gating to match existing snapshot capture constraints).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/addons/devkit/addon.cpp Outdated
Comment thread src/addons/devkit/addon.cpp Outdated
Comment thread src/addons/devkit/addon.cpp

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment on lines +7444 to +7448
if (const auto hotkey = snapshot_hotkey.load();
hotkey != 0
&& !snapshot_hotkey_input_active
&& snapshot_device == nullptr
&& snapshot_queued_device == nullptr) {
Comment on lines +7441 to +7444
// If the snapshot hotkey was pressed, queue a capture.
// Only act on the device selected in the devkit, and skip while a
// snapshot is already active or queued (matches menu gating).
if (const auto hotkey = snapshot_hotkey.load();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants