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

◆ updateInputSource()

void Flint::InputManager::updateInputSource ( const IWindow & window)

Update isControllerActive based on recent device activity.

Inspects keyboard, mouse, and gamepad activity this frame:

  • Any keyboard or mouse activity → isControllerActive = false.
  • Any gamepad button or axis activity → isControllerActive = true.

Does nothing if window is not currently open.

Parameters
windowThe window whose open state gates input processing.