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

38 lines
776 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 <QCheckBox>
#include <QDoubleSpinBox>
2017-05-20 15:53:17 +00:00
#include <QString>
#include "InputCommon/ControllerEmu/Setting/NumericSetting.h"
2017-05-20 15:53:17 +00:00
class MappingWidget;
class MappingDouble : public QDoubleSpinBox
2017-05-20 15:53:17 +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
class MappingBool : public QCheckBox
2017-05-20 15:53:17 +00:00
{
public:
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
ControllerEmu::NumericSetting<bool>& m_setting;
2017-05-20 15:53:17 +00:00
};