dolphin/Source/Core/DolphinQt/Config/Mapping/MappingButton.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
682 B
C
Raw Normal View History

2017-05-20 15:53:17 +00:00
// Copyright 2017 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include "Common/Flag.h"
2018-07-06 22:40:15 +00:00
#include "DolphinQt/QtUtils/ElidedButton.h"
2017-05-20 15:53:17 +00:00
class ControlReference;
class MappingWidget;
class QEvent;
class QMouseEvent;
class MappingButton : public ElidedButton
2017-05-20 15:53:17 +00:00
{
Q_OBJECT
2017-05-20 15:53:17 +00:00
public:
MappingButton(MappingWidget* widget, ControlReference* ref, bool indicator);
2017-05-20 15:53:17 +00:00
2018-04-01 14:25:34 +00:00
bool IsInput() const;
2017-05-20 15:53:17 +00:00
2019-03-15 01:27:49 +00:00
private:
void Clear();
void UpdateIndicator();
void ConfigChanged();
void AdvancedPressed();
void Clicked();
2017-05-20 15:53:17 +00:00
void mouseReleaseEvent(QMouseEvent* event) override;
MappingWidget* m_parent;
ControlReference* m_reference;
};