2022-11-08 17:37:39 +08:00
|
|
|
using ReactiveUI;
|
|
|
|
|
|
|
|
namespace LoraGamepad.Models;
|
|
|
|
|
|
|
|
|
|
|
|
public class SliderConfig : ReactiveObject
|
|
|
|
{
|
|
|
|
private double _rightHorizonValue;
|
|
|
|
private double _rightVerticalValue;
|
|
|
|
private double _leftHorizonValue;
|
|
|
|
private double _lefttVerticalValue;
|
|
|
|
|
2022-11-08 23:54:44 +08:00
|
|
|
private double _leftUpValue = 0;
|
|
|
|
private double _midLeftValue = 0;
|
|
|
|
private double _midRightValue = 0;
|
2022-11-08 17:37:39 +08:00
|
|
|
public SliderConfig()
|
|
|
|
{
|
|
|
|
_rightHorizonValue = _rightVerticalValue = _leftHorizonValue = _lefttVerticalValue = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public double RightHorizonValue
|
|
|
|
{
|
|
|
|
get => _rightHorizonValue;
|
|
|
|
set => this.RaiseAndSetIfChanged(ref _rightHorizonValue, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
public double RightVerticalValue
|
|
|
|
{
|
|
|
|
get => _rightVerticalValue;
|
|
|
|
set => this.RaiseAndSetIfChanged(ref _rightVerticalValue, value);
|
|
|
|
}
|
|
|
|
public double LeftHorizonValue
|
|
|
|
{
|
|
|
|
get => _leftHorizonValue;
|
|
|
|
set => this.RaiseAndSetIfChanged(ref _leftHorizonValue, value);
|
|
|
|
}
|
|
|
|
public double LeftVerticalValue
|
|
|
|
{
|
|
|
|
get => _lefttVerticalValue;
|
|
|
|
set => this.RaiseAndSetIfChanged(ref _lefttVerticalValue, value);
|
|
|
|
}
|
2022-11-08 23:54:44 +08:00
|
|
|
public double LeftUpValue
|
|
|
|
{
|
|
|
|
get => _leftUpValue;
|
|
|
|
set => this.RaiseAndSetIfChanged(ref _leftUpValue, value);
|
|
|
|
}
|
|
|
|
public double MidLeftValue
|
|
|
|
{
|
|
|
|
get => _midLeftValue;
|
|
|
|
set => this.RaiseAndSetIfChanged(ref _midLeftValue, value);
|
|
|
|
}
|
|
|
|
public double MidRightValue
|
|
|
|
{
|
|
|
|
get => _midRightValue;
|
|
|
|
set => this.RaiseAndSetIfChanged(ref _midRightValue, value);
|
|
|
|
}
|
2022-11-08 17:37:39 +08:00
|
|
|
}
|