| 60 | void Input::WaitInput(bool v) { wait_input = v; } |
| 61 | |
| 62 | void Input::Init( |
| 63 | Game_ConfigInput cfg, |
| 64 | const std::string& replay_from_path, |
| 65 | const std::string& record_to_path |
| 66 | ) { |
| 67 | std::fill(press_time.begin(), press_time.end(), 0); |
| 68 | triggered.reset(); |
| 69 | repeated.reset(); |
| 70 | released.reset(); |
| 71 | raw_triggered.reset(); |
| 72 | raw_pressed.reset(); |
| 73 | raw_released.reset(); |
| 74 | |
| 75 | DirectionMappingArray directions = { |
| 76 | { Direction::DOWN, DOWN }, |
| 77 | { Direction::LEFT, LEFT }, |
| 78 | { Direction::RIGHT, RIGHT }, |
| 79 | { Direction::UP, UP } |
| 80 | }; |
| 81 | |
| 82 | cfg.Hide(); |
| 83 | Input::GetSupportedConfig(cfg); |
| 84 | |
| 85 | source = Source::Create(cfg, std::move(directions), replay_from_path); |
| 86 | source->InitRecording(record_to_path); |
| 87 | |
| 88 | ResetMask(); |
| 89 | } |
| 90 | |
| 91 | static void UpdateButton(int i, bool pressed) { |
| 92 | using namespace Input; |
nothing calls this directly
no test coverage detected