| 1564 | |
| 1565 | template <typename InputStateType> |
| 1566 | bool HandleInputEvent(const SDL_Event &event, std::optional<InputStateType> &inputState) |
| 1567 | { |
| 1568 | if (!inputState) { |
| 1569 | return false; // No input state to handle |
| 1570 | } |
| 1571 | |
| 1572 | if constexpr (std::is_same_v<InputStateType, TextInputState>) { |
| 1573 | return HandleTextInputEvent(event, *inputState); |
| 1574 | } else if constexpr (std::is_same_v<InputStateType, NumberInputState>) { |
| 1575 | return HandleNumberInputEvent(event, *inputState); |
| 1576 | } |
| 1577 | |
| 1578 | return false; // Unknown input state type |
| 1579 | } |
| 1580 | |
| 1581 | bool HandleTalkTextInputEvent(const SDL_Event &event) |
| 1582 | { |
no test coverage detected