mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-27 07:24:17 +01:00
Small quality of life indication that mapped button is GC
This commit is contained in:
parent
fcc23139f6
commit
901bc09dd7
@ -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 New Issue
Block a user