[PR #4003] [MERGED] Automatically add missing hotkeys to the global input config #3861

Closed
opened 2026-02-27 22:05:15 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/4003
Author: @kalaposfos13
Created: 2/7/2026
Status: Merged
Merged: 2/7/2026
Merged by: @georgemoralis

Base: mainHead: hotkey-config-autoupdate


📝 Commits (1)

  • dca8aac Automatically add missing hotkeys to the global input config

📊 Changes

4 files changed (+52 additions, -22 deletions)

View changed files

📝 src/common/config.cpp (+38 -15)
📝 src/common/config.h (+2 -2)
📝 src/input/input_handler.cpp (+9 -4)
📝 src/input/input_handler.h (+3 -1)

📄 Description

If a newly added hotkey gets introduced with a new build, and you already have an input_config/global.ini file in your user folder, then you wouldn't be able to use that new hotkey until you manually go and update that file locally, or delete it so it gets recreated. This PR aims to provide a fix for this, by automatically appending any hotkey not yet present in the file with a predefined default binding.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/4003 **Author:** [@kalaposfos13](https://github.com/kalaposfos13) **Created:** 2/7/2026 **Status:** ✅ Merged **Merged:** 2/7/2026 **Merged by:** [@georgemoralis](https://github.com/georgemoralis) **Base:** `main` ← **Head:** `hotkey-config-autoupdate` --- ### 📝 Commits (1) - [`dca8aac`](https://github.com/shadps4-emu/shadPS4/commit/dca8aac459dd1a5e86ecfe6051b72c74a2a16c9c) Automatically add missing hotkeys to the global input config ### 📊 Changes **4 files changed** (+52 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `src/common/config.cpp` (+38 -15) 📝 `src/common/config.h` (+2 -2) 📝 `src/input/input_handler.cpp` (+9 -4) 📝 `src/input/input_handler.h` (+3 -1) </details> ### 📄 Description If a newly added hotkey gets introduced with a new build, and you already have an input_config/global.ini file in your user folder, then you wouldn't be able to use that new hotkey until you manually go and update that file locally, or delete it so it gets recreated. This PR aims to provide a fix for this, by automatically appending any hotkey not yet present in the file with a predefined default binding. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:05:15 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#3861
No description provided.