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:
parent
bdae572264
commit
a8c287c831
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue