MappingButton: remove GetFirstButtonPress logic

This commit is contained in:
Michael Maltese 2017-06-13 16:52:55 -07:00
parent 220ce425cd
commit 94038a1e03
3 changed files with 0 additions and 16 deletions

View File

@ -42,13 +42,8 @@ void MappingButton::OnButtonPressed()
setText(QStringLiteral("..."));
Common::SleepCurrentThread(100);
SetBlockInputs(true);
if (m_parent->GetFirstButtonPress())
m_reference->Detect(10, dev.get());
// Avoid that the button press itself is registered as an event
Common::SleepCurrentThread(100);

View File

@ -114,16 +114,6 @@ void MappingWidget::Update()
LoadSettings();
}
bool MappingWidget::GetFirstButtonPress()
{
if (m_first)
{
m_first = false;
return true;
}
return false;
}
ControllerEmu::EmulatedController* MappingWidget::GetController() const
{
return m_parent->GetController();

View File

@ -51,7 +51,6 @@ public:
virtual InputConfig* GetConfig() = 0;
void Update();
bool GetFirstButtonPress();
protected:
int GetPort() const;