Input mostra també el numero de joysticks que ha trobat

This commit is contained in:
2025-01-03 21:29:22 +01:00
parent 6531106933
commit 5669715285

View File

@@ -245,7 +245,15 @@ bool Input::discoverGameControllers()
}
std::cout << "\n** LOOKING FOR GAME CONTROLLERS" << std::endl;
std::cout << "Gamepads found: " << num_gamepads_ << std::endl;
if (num_joysticks_ != num_gamepads_)
{
std::cout << "Joysticks found: " << num_joysticks_ << std::endl;
std::cout << "Gamepads found : " << num_gamepads_ << std::endl;
}
else
{
std::cout << "Gamepads found: " << num_gamepads_ << std::endl;
}
if (num_gamepads_ > 0)
{