2017-05-20 15:53:17 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-05-20 15:53:17 +00:00
|
|
|
|
|
|
|
#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();
|
2019-10-18 19:54:02 +00:00
|
|
|
void Update();
|
2019-03-27 00:31:03 +00:00
|
|
|
|
|
|
|
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();
|
2019-10-18 19:54:02 +00:00
|
|
|
void Update();
|
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
|
|
|
};
|