diff options
author | bunnei <bunneidev@gmail.com> | 2022-12-30 09:14:53 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2022-12-30 09:14:53 +0100 |
commit | 05c709bebe2f01f7f66d04cab1386f12d1e5b4dd (patch) | |
tree | 2572337125fdffa34674478b763f28c53a71febf /src/core | |
parent | Merge pull request #9515 from liamwhite/cmake-refactor (diff) | |
download | yuzu-05c709bebe2f01f7f66d04cab1386f12d1e5b4dd.tar yuzu-05c709bebe2f01f7f66d04cab1386f12d1e5b4dd.tar.gz yuzu-05c709bebe2f01f7f66d04cab1386f12d1e5b4dd.tar.bz2 yuzu-05c709bebe2f01f7f66d04cab1386f12d1e5b4dd.tar.lz yuzu-05c709bebe2f01f7f66d04cab1386f12d1e5b4dd.tar.xz yuzu-05c709bebe2f01f7f66d04cab1386f12d1e5b4dd.tar.zst yuzu-05c709bebe2f01f7f66d04cab1386f12d1e5b4dd.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hid/emulated_console.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hid/emulated_console.cpp b/src/core/hid/emulated_console.cpp index 30c2e9d17..1c91bbe40 100644 --- a/src/core/hid/emulated_console.cpp +++ b/src/core/hid/emulated_console.cpp @@ -40,6 +40,11 @@ void EmulatedConsole::SetTouchParams() { touch_params[index++] = std::move(touchscreen_param); } + if (Settings::values.touch_from_button_maps.empty()) { + LOG_WARNING(Input, "touch_from_button_maps is unset by frontend config"); + return; + } + const auto button_index = static_cast<u64>(Settings::values.touch_from_button_map_index.GetValue()); const auto& touch_buttons = Settings::values.touch_from_button_maps[button_index].buttons; |