Qt/Mapping: Remove iterative input

This commit is contained in:
spycrab
2019-04-23 22:10:17 +02:00
parent 2abe333ce9
commit 7f861f095a
5 changed files with 0 additions and 42 deletions

View File

@ -46,29 +46,6 @@ MappingWindow* MappingWidget::GetParent() const
return m_parent;
}
bool MappingWidget::IsIterativeInput() const
{
return m_parent->IsIterativeInput();
}
void MappingWidget::NextButton(MappingButton* button)
{
auto iterator = std::find(m_buttons.begin(), m_buttons.end(), button);
if (iterator == m_buttons.end())
return;
if (++iterator == m_buttons.end())
return;
MappingButton* next = *iterator;
if (next->IsInput() && next->isVisible())
next->Detect();
else
NextButton(next);
}
int MappingWidget::GetPort() const
{
return m_parent->GetPort();