Qt/Input: use 1-n in the GUI instead of 1-(n-1)

I didn't look into evdev
This commit is contained in:
Megamouse 2018-12-22 12:49:56 +01:00
parent 91d834ce73
commit 6e323622a5
4 changed files with 6 additions and 6 deletions

View file

@ -795,7 +795,7 @@ void pad_settings_dialog::ChangeInputType()
case pad_handler::xinput:
{
const QString name_string = qstr(m_handler->name_string());
for (int i = 0; i < m_handler->max_devices(); i++)
for (int i = 1; i <= m_handler->max_devices(); i++) // Controllers 1-n in GUI
{
ui->chooseDevice->addItem(name_string + QString::number(i), i);
}