diff options
author | bunnei <bunneidev@gmail.com> | 2021-07-20 20:35:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-20 20:35:20 -0400 |
commit | 29fb110049339a47ec72f8b59b35acb084f98656 (patch) | |
tree | 0126859fe03aaf29eb209428877953db543dc5e2 /src/yuzu/configuration/configure_input_player.cpp | |
parent | c53b688411d916192820520ef5280ad5e378aa11 (diff) | |
parent | c7478642a61e76c5c595b3b61f74d1a67df8a4aa (diff) |
Merge pull request #6649 from german77/toggle_sdl
input_common: Support SDL toggle buttons
Diffstat (limited to 'src/yuzu/configuration/configure_input_player.cpp')
-rw-r--r-- | src/yuzu/configuration/configure_input_player.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/yuzu/configuration/configure_input_player.cpp b/src/yuzu/configuration/configure_input_player.cpp index d5d624b960..14579c220c 100644 --- a/src/yuzu/configuration/configure_input_player.cpp +++ b/src/yuzu/configuration/configure_input_player.cpp @@ -149,8 +149,9 @@ QString ButtonToText(const Common::ParamPackage& param) { if (param.Has("button")) { const QString button_str = QString::fromStdString(param.Get("button", "")); + const QString toggle = QString::fromStdString(param.Get("toggle", false) ? "~" : ""); - return QObject::tr("Button %1").arg(button_str); + return QObject::tr("%1Button %2").arg(toggle, button_str); } if (param.Has("motion")) { |