mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 09:55:45 +00:00
Enable mouse toggle buttons
This commit is contained in:
parent
0b24257e2c
commit
9c42c9e164
5 changed files with 65 additions and 11 deletions
|
@ -158,7 +158,8 @@ QString ButtonToText(const Common::ParamPackage& param) {
|
|||
if (param.Get("engine", "") == "mouse") {
|
||||
if (param.Has("button")) {
|
||||
const QString button_str = QString::number(int(param.Get("button", 0)));
|
||||
return QObject::tr("Click %1").arg(button_str);
|
||||
const QString toggle = QString::fromStdString(param.Get("toggle", false) ? "~" : "");
|
||||
return QObject::tr("%1Click %2").arg(toggle, button_str);
|
||||
}
|
||||
return GetKeyName(param.Get("code", 0));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue