| 69 | } |
| 70 | |
| 71 | void PrintControllers(const Input::JoystickMap& open_joysticks) { |
| 72 | LOGI << "Current controllers:" << std::endl; |
| 73 | for (const auto& open_joystick : open_joysticks) { |
| 74 | const Input::RC_JoystickStruct& js = open_joystick.second; |
| 75 | SDL_Joystick* joystick = (SDL_Joystick*)js.GetConst().sdl_joystick; |
| 76 | LOGI << "Joystick" << open_joystick.first << "," << SDL_JoystickName(joystick) << std::endl; |
| 77 | } |
| 78 | } |
| 79 | } // namespace |
| 80 | |
| 81 | Input::Input() : ignore_mouse_frame(false), |
no outgoing calls
no test coverage detected