2019-06-30 07:40:24 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace DS4Windows
|
|
|
|
|
{
|
|
|
|
|
public class SquareStickInfo
|
|
|
|
|
{
|
|
|
|
|
public bool lsMode;
|
|
|
|
|
public bool rsMode;
|
2019-09-14 05:26:58 +02:00
|
|
|
|
public double lsRoundness = 5.0;
|
|
|
|
|
public double rsRoundness = 5.0;
|
2019-06-30 07:40:24 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class StickDeadZoneInfo
|
|
|
|
|
{
|
|
|
|
|
public int deadZone;
|
|
|
|
|
public int antiDeadZone;
|
|
|
|
|
public int maxZone = 100;
|
2020-01-21 10:21:43 +01:00
|
|
|
|
public double maxOutput = 100.0;
|
2019-06-30 07:40:24 +02:00
|
|
|
|
}
|
2019-07-01 03:59:51 +02:00
|
|
|
|
|
|
|
|
|
public class TriggerDeadZoneZInfo
|
|
|
|
|
{
|
|
|
|
|
public byte deadZone; // Trigger deadzone is expressed in axis units
|
|
|
|
|
public int antiDeadZone;
|
|
|
|
|
public int maxZone = 100;
|
2020-01-21 10:46:24 +01:00
|
|
|
|
public double maxOutput = 100.0;
|
2019-07-01 03:59:51 +02:00
|
|
|
|
}
|
2019-08-23 05:03:03 +02:00
|
|
|
|
|
|
|
|
|
public class GyroMouseInfo
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class GyroMouseStickInfo
|
|
|
|
|
{
|
|
|
|
|
public int deadZone;
|
|
|
|
|
public int maxZone;
|
|
|
|
|
public double antiDeadX;
|
|
|
|
|
public double antiDeadY;
|
2019-08-27 01:53:28 +02:00
|
|
|
|
public int vertScale;
|
2019-08-23 05:03:03 +02:00
|
|
|
|
// Flags representing invert axis choices
|
|
|
|
|
public uint inverted;
|
2019-08-27 05:15:38 +02:00
|
|
|
|
public bool useSmoothing;
|
|
|
|
|
public double smoothWeight;
|
2019-08-23 05:03:03 +02:00
|
|
|
|
}
|
2020-02-22 19:32:19 +01:00
|
|
|
|
|
|
|
|
|
public enum LightbarMode : uint
|
|
|
|
|
{
|
|
|
|
|
None,
|
|
|
|
|
DS4Win,
|
|
|
|
|
Passthru,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class LightbarDS4WinInfo
|
|
|
|
|
{
|
|
|
|
|
public bool useCustomLed;
|
|
|
|
|
public bool ledAsBattery;
|
|
|
|
|
public DS4Color m_CustomLed = new DS4Color(0, 0, 255);
|
|
|
|
|
public DS4Color m_Led;
|
|
|
|
|
public DS4Color m_LowLed;
|
|
|
|
|
public DS4Color m_ChargingLed;
|
|
|
|
|
public DS4Color m_FlashLed;
|
|
|
|
|
public double rainbow;
|
|
|
|
|
public double maxRainbowSat = 1.0;
|
2020-02-22 21:51:14 +01:00
|
|
|
|
public int flashAt; // Battery % when flashing occurs. <0 means disabled
|
2020-02-22 19:32:19 +01:00
|
|
|
|
public byte flashType;
|
|
|
|
|
public int chargingType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class LightbarSettingInfo
|
|
|
|
|
{
|
|
|
|
|
public LightbarMode mode = LightbarMode.DS4Win;
|
|
|
|
|
public LightbarDS4WinInfo ds4winSettings = new LightbarDS4WinInfo();
|
|
|
|
|
public LightbarMode Mode
|
|
|
|
|
{
|
|
|
|
|
get => mode;
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
if (mode == value) return;
|
|
|
|
|
mode = value;
|
|
|
|
|
ChangedMode?.Invoke(this, EventArgs.Empty);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public event EventHandler ChangedMode;
|
|
|
|
|
|
|
|
|
|
public LightbarSettingInfo()
|
|
|
|
|
{
|
|
|
|
|
/*ChangedMode += (sender, e) =>
|
|
|
|
|
{
|
|
|
|
|
if (mode != LightbarMode.DS4Win)
|
|
|
|
|
{
|
|
|
|
|
ds4winSettings = null;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
*/
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-06-30 07:40:24 +02:00
|
|
|
|
}
|