MCPcopy Create free account
hub / github.com/OpenStickCommunity/GP2040-CE / getButtonLayoutName

Method getButtonLayoutName

src/layoutmanager.cpp:48–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48std::string LayoutManager::getButtonLayoutName(ButtonLayout layout) {
49 #define ENUM_CASE(name, value) case name: return #name;
50 switch (layout) {
51 ButtonLayout_VALUELIST(ENUM_CASE)
52 default: return "BUTTON_LAYOUT_UNKNOWN";
53 }
54 #undef ENUM_CASE
55}
56
57std::string LayoutManager::getButtonLayoutRightName(ButtonLayoutRight layout) {
58 #define ENUM_CASE(name, value) case name: return #name;

Callers 1

getButtonLayoutDefsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected