mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Qt: Implement button mapping dialogs
This commit is contained in:
31
Source/Core/DolphinQt2/Config/Mapping/MappingNumeric.h
Normal file
31
Source/Core/DolphinQt2/Config/Mapping/MappingNumeric.h
Normal file
@ -0,0 +1,31 @@
|
||||
// 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;
|
||||
};
|
||||
|
||||
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;
|
||||
double m_range;
|
||||
};
|
Reference in New Issue
Block a user