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

Method getButtonLayoutRightName

src/layoutmanager.cpp:57–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57std::string LayoutManager::getButtonLayoutRightName(ButtonLayoutRight layout) {
58 #define ENUM_CASE(name, value) case name: return #name;
59 switch (layout) {
60 ButtonLayoutRight_VALUELIST(ENUM_CASE)
61 default: return "BUTTON_LAYOUT_UNKNOWN";
62 }
63 #undef ENUM_CASE
64}
65
66LayoutManager::LayoutList LayoutManager::getLeftLayout(uint16_t index) {
67 // buttons

Callers 1

getButtonLayoutDefsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected