mirror of
https://github.com/wiiu-env/ScreenshotWUPS.git
synced 2024-11-22 22:39:14 +01:00
Display the correct icon for the TV button
This commit is contained in:
parent
f4c2196ce1
commit
b1edc121d1
@ -59,6 +59,9 @@ std::string getButtonChar(VPADButtons value) {
|
|||||||
if (value & VPAD_BUTTON_MINUS) {
|
if (value & VPAD_BUTTON_MINUS) {
|
||||||
return "\ue046";
|
return "\ue046";
|
||||||
}
|
}
|
||||||
|
if (value & VPAD_BUTTON_TV) {
|
||||||
|
return "\ue089";
|
||||||
|
}
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -112,6 +115,9 @@ std::string getComboAsString(uint32_t value) {
|
|||||||
if (value & VPAD_BUTTON_MINUS) {
|
if (value & VPAD_BUTTON_MINUS) {
|
||||||
combo += getButtonChar(VPAD_BUTTON_MINUS).append("+");
|
combo += getButtonChar(VPAD_BUTTON_MINUS).append("+");
|
||||||
}
|
}
|
||||||
|
if (value & VPAD_BUTTON_TV) {
|
||||||
|
combo += getButtonChar(VPAD_BUTTON_TV).append("+");
|
||||||
|
}
|
||||||
if (combo.ends_with("+")) {
|
if (combo.ends_with("+")) {
|
||||||
combo.pop_back();
|
combo.pop_back();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user