mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 09:55:45 +00:00
input_common: Support SDL toggle buttons
This commit is contained in:
parent
96703b82bc
commit
c7478642a6
2 changed files with 53 additions and 5 deletions
|
@ -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")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue