More work for remappable controllers

This commit is contained in:
SimoneN64
2024-09-28 14:54:24 +02:00
parent 8e78102794
commit b6f795a4df
8 changed files with 129 additions and 29 deletions

View File

@@ -52,7 +52,7 @@ SettingsWindow::SettingsWindow() : QWidget(nullptr) {
connect(apply.get(), &QPushButton::pressed, this, [&]() {
auto newMap = inputSettings->GetMappedKeys();
if (!std::equal(keyMap.begin(), keyMap.end(), newMap.begin(), newMap.end())) {
if (!std::ranges::equal(keyMap, newMap)) {
keyMap = newMap;
emit regrabKeyboard();
}