InputCommon: Clean up creation of inputs.

This commit is contained in:
Jordan Woyak
2019-10-27 11:04:08 -05:00
parent 01d69ba81a
commit 47877ecf2c
30 changed files with 127 additions and 122 deletions

View File

@ -310,8 +310,7 @@ HotkeyManager::HotkeyManager()
groups.emplace_back(m_hotkey_groups[group]);
for (int key = s_groups_info[group].first; key <= s_groups_info[group].last; key++)
{
m_keys[group]->controls.emplace_back(
new ControllerEmu::Input(ControllerEmu::Translate, s_hotkey_labels[key]));
m_keys[group]->AddInput(ControllerEmu::Translate, s_hotkey_labels[key]);
}
}
}