MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / ToString

Function ToString

Source/controls/controller_buttons.cpp:280–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280string_view ToString(ControllerButton button)
281{
282 switch (GamepadType) {
283 case devilution::GamepadLayout::PlayStation:
284 return ToPlayStationIcon(button);
285 case devilution::GamepadLayout::Nintendo:
286 return ToNintendoIcon(button);
287 case devilution::GamepadLayout::Xbox:
288 return ToXboxIcon(button);
289 default:
290 case devilution::GamepadLayout::Generic:
291 return ToGenericButtonText(button);
292 }
293}
294
295} // namespace devilution

Callers 1

Calls 4

ToPlayStationIconFunction · 0.85
ToNintendoIconFunction · 0.85
ToXboxIconFunction · 0.85
ToGenericButtonTextFunction · 0.85

Tested by

no test coverage detected