| 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 | { |
no test coverage detected