MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / DoraHasGameController

Function DoraHasGameController

Source/GUI/ImGuiDora.cpp:997–1002  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

995}
996
997static bool DoraHasGameController() {
998 for (int i = 0; i < SDL_NumJoysticks(); ++i) {
999 if (SDL_IsGameController(i)) return true;
1000 }
1001 return false;
1002}
1003
1004void ImGuiDora::clearGamepadInputs(ImGuiIO& io) {
1005 _gamepadWindowingDown = false;

Callers 2

handleGamepadEventMethod · 0.85
initMethod · 0.85

Calls 2

SDL_NumJoysticksFunction · 0.85
SDL_IsGameControllerFunction · 0.85

Tested by

no test coverage detected