Added a message to GuiDetectDevice if only accepting input from the first controller.

This commit is contained in:
Leon Styhre 2021-07-03 12:25:36 +02:00
parent 52e12da55a
commit f59223927e

View file

@ -48,6 +48,10 @@ GuiDetectDevice::GuiDetectDevice(
deviceInfo << numDevices << " GAMEPAD" << (numDevices > 1 ? "S" : "") << " DETECTED";
else
deviceInfo << "NO GAMEPADS DETECTED";
if (numDevices > 1 && Settings::getInstance()->getBool("InputOnlyFirstController"))
deviceInfo << " (ONLY ACCEPTING INPUT FROM FIRST CONTROLLER)";
mDeviceInfo = std::make_shared<TextComponent>(mWindow, deviceInfo.str(),
Font::get(FONT_SIZE_SMALL), 0x999999FF, ALIGN_CENTER);
mGrid.setEntry(mDeviceInfo, Vector2i(0, 1), false, true);