mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Move MappingWindow::OnDefaultFieldsPressed() to correct file
This commit is contained in:
@ -90,16 +90,6 @@ void MappingButton::SetBlockInputs(const bool block)
|
|||||||
m_block = block;
|
m_block = block;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MappingWindow::OnDefaultFieldsPressed()
|
|
||||||
{
|
|
||||||
if (m_controller == nullptr)
|
|
||||||
return;
|
|
||||||
|
|
||||||
m_controller->LoadDefaults(g_controller_interface);
|
|
||||||
m_controller->UpdateReferences(g_controller_interface);
|
|
||||||
emit Update();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool MappingButton::event(QEvent* event)
|
bool MappingButton::event(QEvent* event)
|
||||||
{
|
{
|
||||||
return !m_block ? QPushButton::event(event) : true;
|
return !m_block ? QPushButton::event(event) : true;
|
||||||
|
@ -381,3 +381,13 @@ bool MappingWindow::event(QEvent* event)
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MappingWindow::OnDefaultFieldsPressed()
|
||||||
|
{
|
||||||
|
if (m_controller == nullptr)
|
||||||
|
return;
|
||||||
|
|
||||||
|
m_controller->LoadDefaults(g_controller_interface);
|
||||||
|
m_controller->UpdateReferences(g_controller_interface);
|
||||||
|
emit Update();
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user