GuiInputConfig now also shows the controller device name during configuration.

This commit is contained in:
Leon Styhre 2021-05-23 10:14:15 +02:00
parent 2d5c6ed6c4
commit 0f00701c93

View file

@ -91,7 +91,7 @@ GuiInputConfig::GuiInputConfig(
else if (target->getDeviceId() == DEVICE_CEC) else if (target->getDeviceId() == DEVICE_CEC)
ss << "CEC"; ss << "CEC";
else else
ss << "GAMEPAD " << (target->getDeviceId() + 1); ss << "GAMEPAD " << (target->getDeviceId() + 1) << " (" << target->getDeviceName() << ")";
mSubtitle1 = std::make_shared<TextComponent>(mWindow, Utils::String::toUpper(ss.str()), mSubtitle1 = std::make_shared<TextComponent>(mWindow, Utils::String::toUpper(ss.str()),
Font::get(FONT_SIZE_MEDIUM), 0x555555FF, ALIGN_CENTER); Font::get(FONT_SIZE_MEDIUM), 0x555555FF, ALIGN_CENTER);
mGrid.setEntry(mSubtitle1, Vector2i(0, 2), false, true); mGrid.setEntry(mSubtitle1, Vector2i(0, 2), false, true);