mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Qt: Implement "Iterative Input"
This commit is contained in:
@ -31,6 +31,29 @@ 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);
|
||||
}
|
||||
|
||||
std::shared_ptr<ciface::Core::Device> MappingWidget::GetDevice() const
|
||||
{
|
||||
return m_parent->GetDevice();
|
||||
|
Reference in New Issue
Block a user