26 TestDriver(
TestHost &host,
const std::vector<std::shared_ptr<TestSuite>> &test_suites, uint32_t framebuffer_width,
27 uint32_t framebuffer_height,
bool show_options_menu,
bool disable_autorun,
bool autorun_immediately);
37 void OnControllerAdded(
const SDL_ControllerDeviceEvent &event);
38 void OnControllerRemoved(
const SDL_ControllerDeviceEvent &event);
39 void OnControllerButtonEvent(
const SDL_ControllerButtonEvent &event);
40 void OnButtonActivated(SDL_GameControllerButton button,
bool is_repeat);
42 void ShowDebugMessageAndExit();
44 void OnBack(
bool is_repeat);
45 void OnStart(
bool is_repeat);
46 void OnBlack(
bool is_repeat);
47 void OnWhite(
bool is_repeat);
48 void OnUp(
bool is_repeat);
49 void OnDown(
bool is_repeat);
50 void OnLeft(
bool is_repeat);
51 void OnRight(
bool is_repeat);
52 void OnA(
bool is_repeat);
53 void OnB(
bool is_repeat);
54 void OnX(
bool is_repeat);
55 void OnY(
bool is_repeat);
58 volatile bool running_{
true};
60 const std::vector<std::shared_ptr<TestSuite>> &test_suites_;
61 SDL_GameController *gamepads_[kMaxGamepads]{
nullptr};
64 std::shared_ptr<MenuItem> active_menu_;
65 std::shared_ptr<MenuItem> root_menu_;
66 std::shared_ptr<MenuItem> options_menu_;