Display the correct icon for the TV button

This commit is contained in:
Maschell 2022-09-24 19:52:42 +02:00
parent f4c2196ce1
commit b1edc121d1

View File

@ -59,6 +59,9 @@ std::string getButtonChar(VPADButtons value) {
if (value & VPAD_BUTTON_MINUS) {
return "\ue046";
}
if (value & VPAD_BUTTON_TV) {
return "\ue089";
}
return "?";
}
@ -112,6 +115,9 @@ std::string getComboAsString(uint32_t value) {
if (value & VPAD_BUTTON_MINUS) {
combo += getButtonChar(VPAD_BUTTON_MINUS).append("+");
}
if (value & VPAD_BUTTON_TV) {
combo += getButtonChar(VPAD_BUTTON_TV).append("+");
}
if (combo.ends_with("+")) {
combo.pop_back();
}