mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
MappingButton: remove GetFirstButtonPress logic
This commit is contained in:
@ -42,13 +42,8 @@ void MappingButton::OnButtonPressed()
|
|||||||
|
|
||||||
setText(QStringLiteral("..."));
|
setText(QStringLiteral("..."));
|
||||||
|
|
||||||
Common::SleepCurrentThread(100);
|
|
||||||
|
|
||||||
SetBlockInputs(true);
|
SetBlockInputs(true);
|
||||||
|
|
||||||
if (m_parent->GetFirstButtonPress())
|
|
||||||
m_reference->Detect(10, dev.get());
|
|
||||||
|
|
||||||
// Avoid that the button press itself is registered as an event
|
// Avoid that the button press itself is registered as an event
|
||||||
Common::SleepCurrentThread(100);
|
Common::SleepCurrentThread(100);
|
||||||
|
|
||||||
|
@ -114,16 +114,6 @@ void MappingWidget::Update()
|
|||||||
LoadSettings();
|
LoadSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MappingWidget::GetFirstButtonPress()
|
|
||||||
{
|
|
||||||
if (m_first)
|
|
||||||
{
|
|
||||||
m_first = false;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
ControllerEmu::EmulatedController* MappingWidget::GetController() const
|
ControllerEmu::EmulatedController* MappingWidget::GetController() const
|
||||||
{
|
{
|
||||||
return m_parent->GetController();
|
return m_parent->GetController();
|
||||||
|
@ -51,7 +51,6 @@ public:
|
|||||||
virtual InputConfig* GetConfig() = 0;
|
virtual InputConfig* GetConfig() = 0;
|
||||||
|
|
||||||
void Update();
|
void Update();
|
||||||
bool GetFirstButtonPress();
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
int GetPort() const;
|
int GetPort() const;
|
||||||
|
Reference in New Issue
Block a user