yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

Small quality of life indication that mapped button is GC

This commit is contained in:
Ameer 2020-06-22 22:02:50 -04:00
parent fcc23139f6
commit 901bc09dd7
1 changed files with 2 additions and 2 deletions

View File

@ -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));
} }