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

Function ControlTypeToString

Source/controls/plrctrls.cpp:1562–1575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1560}
1561
1562string_view ControlTypeToString(ControlTypes controlType)
1563{
1564 switch (controlType) {
1565 case ControlTypes::None:
1566 return "None";
1567 case ControlTypes::KeyboardAndMouse:
1568 return "KeyboardAndMouse";
1569 case ControlTypes::Gamepad:
1570 return "Gamepad";
1571 case ControlTypes::VirtualGamepad:
1572 return "VirtualGamepad";
1573 }
1574 return "Invalid";
1575}
1576
1577void LogControlDeviceAndModeChange(ControlTypes newControlDevice, ControlTypes newControlMode)
1578{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected