mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-10 00:42:45 +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 axis_str = QString::fromStdString(param.Get("axis", ""));
|
||||||
const QString direction_str = QString::fromStdString(param.Get("direction", ""));
|
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")) {
|
if (param.Has("button")) {
|
||||||
const QString button_str = QString::number(int(std::log2(param.Get("button", 0))));
|
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));
|
return GetKeyName(param.Get("code", 0));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue