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 <QSpinBox>
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
class MappingWidget;
|
|
|
|
|
|
|
|
namespace ControllerEmu
|
|
|
|
{
|
|
|
|
class NumericSetting;
|
2017-07-30 19:56:12 +00:00
|
|
|
}
|
2017-05-20 15:53:17 +00:00
|
|
|
|
|
|
|
class MappingNumeric : public QSpinBox
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
MappingNumeric(MappingWidget* widget, ControllerEmu::NumericSetting* ref);
|
|
|
|
|
|
|
|
void Clear();
|
|
|
|
void Update();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void Connect();
|
|
|
|
|
|
|
|
MappingWidget* m_parent;
|
|
|
|
ControllerEmu::NumericSetting* m_setting;
|
|
|
|
};
|