We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee29cdc commit 312c37aCopy full SHA for 312c37a
SerialPrograms/Source/NintendoSwitch/Controllers/NintendoSwitch_ControllerState.cpp
@@ -34,12 +34,12 @@ std::string button_to_string(Button button){
34
if (button & BUTTON_LEFT_SR) str += "Left-SR";
35
if (button & BUTTON_RIGHT_SL) str += "Right-SL";
36
if (button & BUTTON_RIGHT_SR) str += "Right-SR";
37
+ if (str.empty()) {
38
+ str = "none";
39
+ }
40
if (str.back() == ' '){
41
str.pop_back();
42
}
- if (str.empty()){
- str = "none";
- }
43
return str;
44
45
std::string dpad_to_string(DpadPosition dpad){
0 commit comments