7 #include "sdl_input.hpp"
8 #include "sdl_buttons.hpp"
14 const std::vector<std::string>& initial,
const std::vector<Uint32>& flags);
23 int run(std::vector<std::string>& result);
26 bool update(SDL_Renderer* renderer);
27 ssize_t get_index(
const SDL_MouseButtonEvent& button);
32 INPUT_BUTTON_ACCEPT = 1,
33 INPUT_BUTTON_CANCEL = -2
36 ssize_t next(ssize_t current);
37 [[nodiscard]]
bool valid(ssize_t current)
const;
41 SDL_Renderer* _renderer;
42 std::vector<SdlInputWidget> _list;