| 278 | } |
| 279 | |
| 280 | string_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 |
no test coverage detected