mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-21 09:39:56 +00:00
Print detected game controllers to the log file
This commit is contained in:
parent
bdae572264
commit
a8c287c831
@ -119,10 +119,11 @@ namespace MWInput
|
||||
SDL_ControllerDeviceEvent evt;
|
||||
evt.which = i;
|
||||
controllerAdded(mFakeDeviceID, evt);
|
||||
std::cout << "Detected game controller: " << SDL_GameControllerNameForIndex(i) << std::endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
//ICS_LOG(std::string("Unusable controller plugged in: ")+SDL_JoystickNameForIndex(i));
|
||||
std::cout << "Detected unusable controller: " << SDL_JoystickNameForIndex(i) << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user