MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / stringToInputButtonState

Function stringToInputButtonState

src/Core/Input/InputButtonState.cpp:18–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 }
17
18 InputButtonState stringToInputButtonState(const std::string& state)
19 {
20 if (state == "Idle")
21 return InputButtonState::Idle;
22 if (state == "Hold")
23 return InputButtonState::Hold;
24 if (state == "Pressed")
25 return InputButtonState::Pressed;
26 if (state == "Released")
27 return InputButtonState::Released;
28 throw Exceptions::InvalidInputButtonState(state, EXC_INFO);
29 }
30
31 std::string inputButtonStateToString(InputButtonState state)
32 {

Callers 1

makeCombinationMethod · 0.85

Calls 1

Tested by

no test coverage detected