Fixed displaying joystick button 0 name, closes

dev-time-step
krzys-h 2015-09-25 23:24:29 +02:00
parent 07df35ca01
commit f6823389cc
1 changed files with 1 additions and 1 deletions
src/common

View File

@ -876,7 +876,7 @@ bool GetResource(ResType type, unsigned int num, std::string& text)
text = "Alt";
else if (num == static_cast<unsigned int>(VIRTUAL_KMOD(GUI)))
text = "Win"; // TODO: Better description of this key?
else if (num > static_cast<unsigned int>(VIRTUAL_JOY(0)))
else if (num >= static_cast<unsigned int>(VIRTUAL_JOY(0)))
{
text = gettext("Button %1");
text = StrUtils::Replace(text, "%1", StrUtils::ToString<int>(1 + num - VIRTUAL_JOY(0)));