MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / PrintControllers

Function PrintControllers

Source/UserInput/input.cpp:71–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void 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
81Input::Input() : ignore_mouse_frame(false),

Callers 2

InitializeMethod · 0.85
HandleEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected