1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +00:00

Print detected game controllers to the log file

This commit is contained in:
scrawl 2015-12-09 14:33:02 +01:00
parent bdae572264
commit a8c287c831

View file

@ -119,10 +119,11 @@ namespace MWInput
SDL_ControllerDeviceEvent evt; SDL_ControllerDeviceEvent evt;
evt.which = i; evt.which = i;
controllerAdded(mFakeDeviceID, evt); controllerAdded(mFakeDeviceID, evt);
std::cout << "Detected game controller: " << SDL_GameControllerNameForIndex(i) << std::endl;
} }
else else
{ {
//ICS_LOG(std::string("Unusable controller plugged in: ")+SDL_JoystickNameForIndex(i)); std::cout << "Detected unusable controller: " << SDL_JoystickNameForIndex(i) << std::endl;
} }
} }