Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches

◆ detectController()

void Flint::InputManager::detectController ( )

Detect and open the first available gamepad.

Enumerates attached controllers and opens the first one found, storing the handle in g_gamepad and setting isControllerActive to true. Safe to call when a controller is already open; the existing handle is reused.