MappingButton: grab and release mouse and keyboard instead of calling parent SetBlockInputs

This commit is contained in:
Michael Maltese
2017-06-13 17:11:52 -07:00
parent 2188ac785a
commit 5b6c8c3ad0
6 changed files with 19 additions and 33 deletions

View File

@ -369,19 +369,6 @@ std::shared_ptr<ciface::Core::Device> MappingWindow::GetDevice() const
return g_controller_interface.FindDevice(m_devq);
}
void MappingWindow::SetBlockInputs(const bool block)
{
m_block = block;
}
bool MappingWindow::event(QEvent* event)
{
if (!m_block)
return QDialog::event(event);
return false;
}
void MappingWindow::OnDefaultFieldsPressed()
{
if (m_controller == nullptr)