mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-28 03:10:57 +01:00
Small quality of life indication that mapped button is GC
This commit is contained in:
parent
fcc23139f6
commit
901bc09dd7
1 changed files with 2 additions and 2 deletions
|
@ -75,11 +75,11 @@ static QString ButtonToText(const Common::ParamPackage& param) {
|
|||
const QString axis_str = QString::fromStdString(param.Get("axis", ""));
|
||||
const QString direction_str = QString::fromStdString(param.Get("direction", ""));
|
||||
|
||||
return QObject::tr("Axis %1%2").arg(axis_str, direction_str);
|
||||
return QObject::tr("GC Axis %1%2").arg(axis_str, direction_str);
|
||||
}
|
||||
if (param.Has("button")) {
|
||||
const QString button_str = QString::number(int(std::log2(param.Get("button", 0))));
|
||||
return QObject::tr("Button %1").arg(button_str);
|
||||
return QObject::tr("GC Button %1").arg(button_str);
|
||||
}
|
||||
return GetKeyName(param.Get("code", 0));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue