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
|
|
|
|
|
2019-03-27 00:31:03 +00:00
|
|
|
#include <QCheckBox>
|
|
|
|
#include <QDoubleSpinBox>
|
2017-05-20 15:53:17 +00:00
|
|
|
#include <QString>
|
|
|
|
|
2019-03-27 00:31:03 +00:00
|
|
|
#include "InputCommon/ControllerEmu/Setting/NumericSetting.h"
|
|
|
|
|
2017-05-20 15:53:17 +00:00
|
|
|
class MappingWidget;
|
|
|
|
|
2019-03-27 00:31:03 +00:00
|
|
|
class MappingDouble : public QDoubleSpinBox
|
2017-05-20 15:53:17 +00:00
|
|
|
{
|
2019-03-27 00:31:03 +00:00
|
|
|
public:
|
|
|
|
MappingDouble(MappingWidget* parent, ControllerEmu::NumericSetting<double>* setting);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void fixup(QString& input) const override;
|
|
|
|
|
|
|
|
void ConfigChanged();
|
|
|
|
|
|
|
|
ControllerEmu::NumericSetting<double>& m_setting;
|
|
|
|
};
|
2017-05-20 15:53:17 +00:00
|
|
|
|
2019-03-27 00:31:03 +00:00
|
|
|
class MappingBool : public QCheckBox
|
2017-05-20 15:53:17 +00:00
|
|
|
{
|
|
|
|
public:
|
2019-03-27 00:31:03 +00:00
|
|
|
MappingBool(MappingWidget* widget, ControllerEmu::NumericSetting<bool>* setting);
|
2017-05-20 15:53:17 +00:00
|
|
|
|
|
|
|
private:
|
2019-03-15 01:27:49 +00:00
|
|
|
void ConfigChanged();
|
2017-05-20 15:53:17 +00:00
|
|
|
|
2019-03-27 00:31:03 +00:00
|
|
|
ControllerEmu::NumericSetting<bool>& m_setting;
|
2017-05-20 15:53:17 +00:00
|
|
|
};
|