diff --git a/OpenTabletDriver.Benchmarks/Benchmark.cs b/OpenTabletDriver.Benchmarks/Benchmark.cs index c832eea3c..e6fcff9f5 100644 --- a/OpenTabletDriver.Benchmarks/Benchmark.cs +++ b/OpenTabletDriver.Benchmarks/Benchmark.cs @@ -9,4 +9,4 @@ public static void Main(string[] args) BenchmarkSwitcher.FromAssembly(typeof(Benchmark).Assembly).Run(args); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Benchmarks/Misc/DriverInfoBenchmark.cs b/OpenTabletDriver.Benchmarks/Misc/DriverInfoBenchmark.cs index e6d577edc..1c6b76298 100644 --- a/OpenTabletDriver.Benchmarks/Misc/DriverInfoBenchmark.cs +++ b/OpenTabletDriver.Benchmarks/Misc/DriverInfoBenchmark.cs @@ -12,4 +12,4 @@ public DriverInfo[] GetDriverInfos() return DriverInfo.GetDriverInfos().ToArray(); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Benchmarks/Output/LinuxInteropBenchmark.cs b/OpenTabletDriver.Benchmarks/Output/LinuxInteropBenchmark.cs index 8aaf8258f..80fc42abb 100644 --- a/OpenTabletDriver.Benchmarks/Output/LinuxInteropBenchmark.cs +++ b/OpenTabletDriver.Benchmarks/Output/LinuxInteropBenchmark.cs @@ -22,4 +22,4 @@ public void EvdevRelative() relativePointer.SetPosition(Vector2.Zero); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Benchmarks/Output/MacOSInteropBenchmark.cs b/OpenTabletDriver.Benchmarks/Output/MacOSInteropBenchmark.cs index f2dfbbaad..809474240 100644 --- a/OpenTabletDriver.Benchmarks/Output/MacOSInteropBenchmark.cs +++ b/OpenTabletDriver.Benchmarks/Output/MacOSInteropBenchmark.cs @@ -22,4 +22,4 @@ public void CoreGraphicsRelative() relativePointer.SetPosition(Vector2.Zero); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Benchmarks/Output/NoopAbsoluteMode.cs b/OpenTabletDriver.Benchmarks/Output/NoopAbsoluteMode.cs index 3a7945eab..e1851a59b 100644 --- a/OpenTabletDriver.Benchmarks/Output/NoopAbsoluteMode.cs +++ b/OpenTabletDriver.Benchmarks/Output/NoopAbsoluteMode.cs @@ -18,4 +18,4 @@ public void SetPosition(Vector2 pos) } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Benchmarks/Output/OutputBenchmark.cs b/OpenTabletDriver.Benchmarks/Output/OutputBenchmark.cs index 9a9fdc64e..ad4462cb9 100644 --- a/OpenTabletDriver.Benchmarks/Output/OutputBenchmark.cs +++ b/OpenTabletDriver.Benchmarks/Output/OutputBenchmark.cs @@ -74,4 +74,4 @@ public void Output() OutputMode.Read(Report); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Benchmarks/Output/WindowsInteropBenchmark.cs b/OpenTabletDriver.Benchmarks/Output/WindowsInteropBenchmark.cs index bfed2f000..5355bc0ab 100644 --- a/OpenTabletDriver.Benchmarks/Output/WindowsInteropBenchmark.cs +++ b/OpenTabletDriver.Benchmarks/Output/WindowsInteropBenchmark.cs @@ -22,4 +22,4 @@ public void SendInputRelative() relativePointer.SetPosition(Vector2.Zero); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Benchmarks/Parser/ReportParserBenchmark.cs b/OpenTabletDriver.Benchmarks/Parser/ReportParserBenchmark.cs index 683fd0623..5df6b8b2f 100644 --- a/OpenTabletDriver.Benchmarks/Parser/ReportParserBenchmark.cs +++ b/OpenTabletDriver.Benchmarks/Parser/ReportParserBenchmark.cs @@ -1,7 +1,7 @@ using System; using BenchmarkDotNet.Attributes; -using OpenTabletDriver.Plugin.Tablet; using OpenTabletDriver.Configurations.Parsers; +using OpenTabletDriver.Plugin.Tablet; namespace OpenTabletDriver.Benchmarks.Parser { @@ -31,4 +31,4 @@ public void SkipByteReportParser() skipParser.Parse(data); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Benchmarks/Parser/ReportParserProviderConstructBenchmark.cs b/OpenTabletDriver.Benchmarks/Parser/ReportParserProviderConstructBenchmark.cs index acae4c5e3..b68757b64 100644 --- a/OpenTabletDriver.Benchmarks/Parser/ReportParserProviderConstructBenchmark.cs +++ b/OpenTabletDriver.Benchmarks/Parser/ReportParserProviderConstructBenchmark.cs @@ -14,4 +14,4 @@ public void ConstructReportParserProvider() ReportParserProvider = new ReportParserProvider(); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Benchmarks/Plugin/PluginManagerBenchmark.cs b/OpenTabletDriver.Benchmarks/Plugin/PluginManagerBenchmark.cs index 63979e220..d34a3f151 100644 --- a/OpenTabletDriver.Benchmarks/Plugin/PluginManagerBenchmark.cs +++ b/OpenTabletDriver.Benchmarks/Plugin/PluginManagerBenchmark.cs @@ -14,4 +14,4 @@ public void PluginManagerCtor() pluginManager = new PluginManager(); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/DeviceConfigurationProvider.cs b/OpenTabletDriver.Configurations/DeviceConfigurationProvider.cs index b4295532b..5ce682fb3 100644 --- a/OpenTabletDriver.Configurations/DeviceConfigurationProvider.cs +++ b/OpenTabletDriver.Configurations/DeviceConfigurationProvider.cs @@ -29,4 +29,4 @@ private static TabletConfiguration Deserialize(JsonSerializer jsonSerializer, St return jsonSerializer.Deserialize(jsonReader); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/Acepen/AcepenAuxReport.cs b/OpenTabletDriver.Configurations/Parsers/Acepen/AcepenAuxReport.cs index fe59859db..de2014192 100644 --- a/OpenTabletDriver.Configurations/Parsers/Acepen/AcepenAuxReport.cs +++ b/OpenTabletDriver.Configurations/Parsers/Acepen/AcepenAuxReport.cs @@ -16,4 +16,4 @@ public AcepenAuxReport(byte[] report, bool[] auxState) public bool[] AuxButtons { set; get; } public byte[] Raw { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/Acepen/AcepenReportParser.cs b/OpenTabletDriver.Configurations/Parsers/Acepen/AcepenReportParser.cs index eea28ad3e..9c5ba5268 100644 --- a/OpenTabletDriver.Configurations/Parsers/Acepen/AcepenReportParser.cs +++ b/OpenTabletDriver.Configurations/Parsers/Acepen/AcepenReportParser.cs @@ -22,4 +22,4 @@ public IDeviceReport Parse(byte[] report) }; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/Acepen/AcepenTabletReport.cs b/OpenTabletDriver.Configurations/Parsers/Acepen/AcepenTabletReport.cs index fd591ae2e..42f025049 100644 --- a/OpenTabletDriver.Configurations/Parsers/Acepen/AcepenTabletReport.cs +++ b/OpenTabletDriver.Configurations/Parsers/Acepen/AcepenTabletReport.cs @@ -36,4 +36,4 @@ public AcepenTabletReport(byte[] report) public bool[] PenButtons { set; get; } public Vector2 Tilt { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/Genius/GeniusMouseReport.cs b/OpenTabletDriver.Configurations/Parsers/Genius/GeniusMouseReport.cs index ad90dcffe..2864a5595 100644 --- a/OpenTabletDriver.Configurations/Parsers/Genius/GeniusMouseReport.cs +++ b/OpenTabletDriver.Configurations/Parsers/Genius/GeniusMouseReport.cs @@ -1,6 +1,6 @@ using System.Numerics; -using OpenTabletDriver.Plugin.Tablet; using System.Runtime.CompilerServices; +using OpenTabletDriver.Plugin.Tablet; namespace OpenTabletDriver.Configurations.Parsers.Genius { @@ -32,4 +32,4 @@ public GeniusMouseReport(byte[] report) public bool[] MouseButtons { set; get; } public Vector2 Scroll { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/Huion/GianoReportParser.cs b/OpenTabletDriver.Configurations/Parsers/Huion/GianoReportParser.cs index 62b8a9989..bb18ddadd 100644 --- a/OpenTabletDriver.Configurations/Parsers/Huion/GianoReportParser.cs +++ b/OpenTabletDriver.Configurations/Parsers/Huion/GianoReportParser.cs @@ -1,5 +1,5 @@ -using OpenTabletDriver.Plugin.Tablet; using OpenTabletDriver.Configurations.Parsers.UCLogic; +using OpenTabletDriver.Plugin.Tablet; namespace OpenTabletDriver.Configurations.Parsers.Huion { diff --git a/OpenTabletDriver.Configurations/Parsers/SkipByteTabletReportParser.cs b/OpenTabletDriver.Configurations/Parsers/SkipByteTabletReportParser.cs index dcc1d44ee..3d24330a4 100644 --- a/OpenTabletDriver.Configurations/Parsers/SkipByteTabletReportParser.cs +++ b/OpenTabletDriver.Configurations/Parsers/SkipByteTabletReportParser.cs @@ -9,4 +9,4 @@ public override IDeviceReport Parse(byte[] data) return base.Parse(data[1..^0]); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/UCLogic/UCLogicReportParser.cs b/OpenTabletDriver.Configurations/Parsers/UCLogic/UCLogicReportParser.cs index 2000edcb2..5e3051bd7 100644 --- a/OpenTabletDriver.Configurations/Parsers/UCLogic/UCLogicReportParser.cs +++ b/OpenTabletDriver.Configurations/Parsers/UCLogic/UCLogicReportParser.cs @@ -12,4 +12,4 @@ public IDeviceReport Parse(byte[] data) return new TabletReport(data); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/Veikk/VeikkReportParser.cs b/OpenTabletDriver.Configurations/Parsers/Veikk/VeikkReportParser.cs index 527609ba0..1b31673c8 100644 --- a/OpenTabletDriver.Configurations/Parsers/Veikk/VeikkReportParser.cs +++ b/OpenTabletDriver.Configurations/Parsers/Veikk/VeikkReportParser.cs @@ -12,4 +12,4 @@ public IDeviceReport Parse(byte[] report) return new DeviceReport(report); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/Veikk/VeikkTabletReport.cs b/OpenTabletDriver.Configurations/Parsers/Veikk/VeikkTabletReport.cs index 56e14ca42..70771f5d7 100644 --- a/OpenTabletDriver.Configurations/Parsers/Veikk/VeikkTabletReport.cs +++ b/OpenTabletDriver.Configurations/Parsers/Veikk/VeikkTabletReport.cs @@ -28,4 +28,4 @@ public VeikkTabletReport(byte[] report) public uint Pressure { set; get; } public bool[] PenButtons { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/ViewSonic/WoodPadParser.cs b/OpenTabletDriver.Configurations/Parsers/ViewSonic/WoodPadParser.cs index a7a48b9eb..dc8c82598 100644 --- a/OpenTabletDriver.Configurations/Parsers/ViewSonic/WoodPadParser.cs +++ b/OpenTabletDriver.Configurations/Parsers/ViewSonic/WoodPadParser.cs @@ -12,4 +12,4 @@ public IDeviceReport Parse(byte[] report) return new DeviceReport(report); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/ViewSonic/WoodPadReport.cs b/OpenTabletDriver.Configurations/Parsers/ViewSonic/WoodPadReport.cs index 7463e744f..967f196d5 100644 --- a/OpenTabletDriver.Configurations/Parsers/ViewSonic/WoodPadReport.cs +++ b/OpenTabletDriver.Configurations/Parsers/ViewSonic/WoodPadReport.cs @@ -38,4 +38,4 @@ public WoodPadReport(byte[] report) public Vector2 Tilt { get; set; } public bool[] PenButtons { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/Wacom/Bamboo/BambooAuxReport.cs b/OpenTabletDriver.Configurations/Parsers/Wacom/Bamboo/BambooAuxReport.cs index 01c78ae98..77359203e 100644 --- a/OpenTabletDriver.Configurations/Parsers/Wacom/Bamboo/BambooAuxReport.cs +++ b/OpenTabletDriver.Configurations/Parsers/Wacom/Bamboo/BambooAuxReport.cs @@ -23,4 +23,4 @@ public BambooAuxReport(byte[] report) public byte[] Raw { set; get; } public bool[] AuxButtons { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/Wacom/Bamboo/BambooMouseReport.cs b/OpenTabletDriver.Configurations/Parsers/Wacom/Bamboo/BambooMouseReport.cs index 10c32c59f..e1d6e62ba 100644 --- a/OpenTabletDriver.Configurations/Parsers/Wacom/Bamboo/BambooMouseReport.cs +++ b/OpenTabletDriver.Configurations/Parsers/Wacom/Bamboo/BambooMouseReport.cs @@ -46,4 +46,4 @@ public BambooMouseReport(byte[] report) public Vector2 Scroll { get; set; } public bool[] AuxButtons { get; set; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos/IntuosReportParser.cs b/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos/IntuosReportParser.cs index 0d75145fb..045c5a64d 100644 --- a/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos/IntuosReportParser.cs +++ b/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos/IntuosReportParser.cs @@ -21,4 +21,4 @@ private IDeviceReport GetToolReport(byte[] report) return new DeviceReport(report); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos/IntuosTabletReport.cs b/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos/IntuosTabletReport.cs index 344607a83..dc10082ae 100644 --- a/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos/IntuosTabletReport.cs +++ b/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos/IntuosTabletReport.cs @@ -35,4 +35,4 @@ public IntuosTabletReport(byte[] report) public bool NearProximity { set; get; } public uint HoverDistance { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos/WacomDriverIntuosReportParser.cs b/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos/WacomDriverIntuosReportParser.cs index 338f943a3..2b2699973 100644 --- a/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos/WacomDriverIntuosReportParser.cs +++ b/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos/WacomDriverIntuosReportParser.cs @@ -9,4 +9,4 @@ public override IDeviceReport Parse(byte[] report) return base.Parse(report[1..^0]); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos3/Intuos3AuxReport.cs b/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos3/Intuos3AuxReport.cs index 3c6f3e6ab..ae470145b 100644 --- a/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos3/Intuos3AuxReport.cs +++ b/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos3/Intuos3AuxReport.cs @@ -23,4 +23,4 @@ public Intuos3AuxReport(byte[] report) public bool[] AuxButtons { set; get; } public byte[] Raw { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos3/Intuos3MouseReport.cs b/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos3/Intuos3MouseReport.cs index 02cf6f77b..22b75e6b3 100644 --- a/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos3/Intuos3MouseReport.cs +++ b/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos3/Intuos3MouseReport.cs @@ -41,4 +41,4 @@ public Intuos3MouseReport(byte[] report) public bool[] MouseButtons { set; get; } public Vector2 Scroll { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos3/Intuos3ReportParser.cs b/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos3/Intuos3ReportParser.cs index 07954dade..f2f547de9 100644 --- a/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos3/Intuos3ReportParser.cs +++ b/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos3/Intuos3ReportParser.cs @@ -1,5 +1,5 @@ -using OpenTabletDriver.Plugin.Tablet; using OpenTabletDriver.Configurations.Parsers.Wacom.IntuosV1; +using OpenTabletDriver.Plugin.Tablet; namespace OpenTabletDriver.Configurations.Parsers.Wacom.Intuos3 { @@ -27,4 +27,4 @@ private IDeviceReport GetToolReport(byte[] data) }; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos3/WacomDriverIntuos3ReportParser.cs b/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos3/WacomDriverIntuos3ReportParser.cs index af317cbf5..94473a32e 100644 --- a/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos3/WacomDriverIntuos3ReportParser.cs +++ b/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos3/WacomDriverIntuos3ReportParser.cs @@ -9,4 +9,4 @@ public override IDeviceReport Parse(byte[] data) return base.Parse(data[1..^0]); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos4/Intuos4AuxReport.cs b/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos4/Intuos4AuxReport.cs index ad782bbc0..399d63874 100644 --- a/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos4/Intuos4AuxReport.cs +++ b/OpenTabletDriver.Configurations/Parsers/Wacom/Intuos4/Intuos4AuxReport.cs @@ -4,7 +4,7 @@ namespace OpenTabletDriver.Configurations.Parsers.Wacom.Intuos4 { public struct Intuos4AuxReport : IAuxReport { - public Intuos4AuxReport (byte[] report) + public Intuos4AuxReport(byte[] report) { Raw = report; @@ -20,7 +20,7 @@ public Intuos4AuxReport (byte[] report) (report[3] & (1 << 7)) != 0 }; } - + public byte[] Raw { set; get; } public bool[] AuxButtons { set; get; } } diff --git a/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV1/IntuosV1AuxReport.cs b/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV1/IntuosV1AuxReport.cs index 1aeb40ef6..9039e88fc 100644 --- a/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV1/IntuosV1AuxReport.cs +++ b/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV1/IntuosV1AuxReport.cs @@ -21,7 +21,7 @@ public IntuosV1AuxReport(byte[] report) auxByte.IsBitSet(7), }; } - + public byte[] Raw { set; get; } public bool[] AuxButtons { set; get; } } diff --git a/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV1/IntuosV1ReportParser.cs b/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV1/IntuosV1ReportParser.cs index a4006f096..9ce31a7a0 100644 --- a/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV1/IntuosV1ReportParser.cs +++ b/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV1/IntuosV1ReportParser.cs @@ -1,5 +1,5 @@ -using OpenTabletDriver.Plugin.Tablet; -using OpenTabletDriver.Configurations.Parsers.Wacom.Intuos4; +using OpenTabletDriver.Configurations.Parsers.Wacom.Intuos4; +using OpenTabletDriver.Plugin.Tablet; namespace OpenTabletDriver.Configurations.Parsers.Wacom.IntuosV1 { diff --git a/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV1/IntuosV1TabletReport.cs b/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV1/IntuosV1TabletReport.cs index ecf221934..a4f844591 100644 --- a/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV1/IntuosV1TabletReport.cs +++ b/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV1/IntuosV1TabletReport.cs @@ -39,4 +39,4 @@ public IntuosV1TabletReport(byte[] report) public bool NearProximity { set; get; } public uint HoverDistance { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV1/IntuosV1ToolReport.cs b/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV1/IntuosV1ToolReport.cs index 0883bd080..5ab1a0316 100644 --- a/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV1/IntuosV1ToolReport.cs +++ b/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV1/IntuosV1ToolReport.cs @@ -12,7 +12,7 @@ public IntuosV1ToolReport(byte[] report) (report[4] << 0x14) + (report[5] << 0x0C) + (report[6] << 0x04) + (report[7] >> 0x04)); - RawToolID = (uint)((report[2] << 4) | ( report[3] >> 4) | + RawToolID = (uint)((report[2] << 4) | (report[3] >> 4) | ((report[7] & 0x0f) << 16) | ((report[8] & 0xf0) << 8)); Tool = report[3].IsBitSet(7) ? ToolType.Eraser : ToolType.Pen; diff --git a/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV1/WacomDriverIntuosV1ReportParser.cs b/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV1/WacomDriverIntuosV1ReportParser.cs index b6cfa3772..1af2e0337 100644 --- a/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV1/WacomDriverIntuosV1ReportParser.cs +++ b/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV1/WacomDriverIntuosV1ReportParser.cs @@ -9,4 +9,4 @@ public override IDeviceReport Parse(byte[] data) return base.Parse(data[1..^0]); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV2/IntuosV2AuxReport.cs b/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV2/IntuosV2AuxReport.cs index b4d4f85d5..e20d11b5d 100644 --- a/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV2/IntuosV2AuxReport.cs +++ b/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV2/IntuosV2AuxReport.cs @@ -21,8 +21,8 @@ public IntuosV2AuxReport(byte[] report) auxByte.IsBitSet(7), }; } - + public byte[] Raw { set; get; } public bool[] AuxButtons { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV2/IntuosV2ReportParser.cs b/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV2/IntuosV2ReportParser.cs index c698ca097..4bb757154 100644 --- a/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV2/IntuosV2ReportParser.cs +++ b/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV2/IntuosV2ReportParser.cs @@ -25,4 +25,4 @@ public virtual IDeviceReport Parse(byte[] data) private TouchPoint[] prevTouches; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV2/WacomDriverIntuosV2ReportParser.cs b/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV2/WacomDriverIntuosV2ReportParser.cs index 3e90764f9..fe01a4a61 100644 --- a/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV2/WacomDriverIntuosV2ReportParser.cs +++ b/OpenTabletDriver.Configurations/Parsers/Wacom/IntuosV2/WacomDriverIntuosV2ReportParser.cs @@ -9,4 +9,4 @@ public override IDeviceReport Parse(byte[] data) return base.Parse(data[1..^0]); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/XenceLabs/XenceLabsReportParser.cs b/OpenTabletDriver.Configurations/Parsers/XenceLabs/XenceLabsReportParser.cs index eb18e08e2..505c6cc33 100644 --- a/OpenTabletDriver.Configurations/Parsers/XenceLabs/XenceLabsReportParser.cs +++ b/OpenTabletDriver.Configurations/Parsers/XenceLabs/XenceLabsReportParser.cs @@ -1,5 +1,5 @@ -using OpenTabletDriver.Plugin.Tablet; using OpenTabletDriver.Configurations.Parsers.XP_Pen; +using OpenTabletDriver.Plugin.Tablet; namespace OpenTabletDriver.Configurations.Parsers.XenceLabs { @@ -17,4 +17,4 @@ public IDeviceReport Parse(byte[] report) return new DeviceReport(report); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/Parsers/XenceLabs/XenceLabsTabletReport.cs b/OpenTabletDriver.Configurations/Parsers/XenceLabs/XenceLabsTabletReport.cs index 79a0ad171..b1b32370d 100644 --- a/OpenTabletDriver.Configurations/Parsers/XenceLabs/XenceLabsTabletReport.cs +++ b/OpenTabletDriver.Configurations/Parsers/XenceLabs/XenceLabsTabletReport.cs @@ -39,4 +39,4 @@ public XenceLabsTabletReport(byte[] report) public Vector2 Tilt { set; get; } public bool Eraser { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Configurations/ReportParserProvider.cs b/OpenTabletDriver.Configurations/ReportParserProvider.cs index 11e9739b2..7e87c65de 100644 --- a/OpenTabletDriver.Configurations/ReportParserProvider.cs +++ b/OpenTabletDriver.Configurations/ReportParserProvider.cs @@ -43,4 +43,4 @@ private static Dictionary>> CreatePars ); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Console/CommandTools.cs b/OpenTabletDriver.Console/CommandTools.cs index 9483604e2..774a831f4 100644 --- a/OpenTabletDriver.Console/CommandTools.cs +++ b/OpenTabletDriver.Console/CommandTools.cs @@ -59,7 +59,7 @@ public static Command CreateCommand(Func action, s command.AddAlias(alias); return command; } - + public static Command CreateCommand(Func action, string description, params string[] aliases) { var parameters = action.Method.GetParameters(); @@ -90,7 +90,7 @@ public static Command CreateCommand(Func(action); return command; } - + public static Command CreateCommand(Func action, string description, params string[] aliases) { var parameters = action.Method.GetParameters(); @@ -107,4 +107,4 @@ public static Command CreateCommand(Func Format(this IEnumerable st } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Console/Program.Commands.cs b/OpenTabletDriver.Console/Program.Commands.cs index 0e5d2a00c..70afd5642 100644 --- a/OpenTabletDriver.Console/Program.Commands.cs +++ b/OpenTabletDriver.Console/Program.Commands.cs @@ -29,7 +29,7 @@ private static async Task HasUpdate() } private static async Task InstallUpdate() - { + { if (await Driver.Instance.HasUpdate()) { await Driver.Instance.InstallUpdate(); diff --git a/OpenTabletDriver.Console/Program.Misc.cs b/OpenTabletDriver.Console/Program.Misc.cs index 0248c1eb3..3d2a09ac1 100644 --- a/OpenTabletDriver.Console/Program.Misc.cs +++ b/OpenTabletDriver.Console/Program.Misc.cs @@ -32,7 +32,7 @@ static async Task ModifySettings(Action func) static async Task ModifyProfile(string profileName, Action func) { - await ModifySettings(async s => + await ModifySettings(async s => { var profile = await GetProfile(profileName, s); if (profile != null) diff --git a/OpenTabletDriver.Daemon/DriverDaemon.cs b/OpenTabletDriver.Daemon/DriverDaemon.cs index e3c816792..792a24268 100644 --- a/OpenTabletDriver.Daemon/DriverDaemon.cs +++ b/OpenTabletDriver.Daemon/DriverDaemon.cs @@ -231,16 +231,16 @@ private async void LoadUserSettings() } } - private void SetOutputModeSettings(InputDeviceTree dev, IOutputMode outputMode, Profile profile, TabletReference tabletReference) + private void SetOutputModeSettings(InputDeviceTree dev, IOutputMode outputMode, Profile profile, TabletReference tabletReference) { string group = dev.Properties.Name; outputMode.Tablet = dev; var elements = from store in profile.Filters - where store.Enable == true - let filter = store.Construct>(tabletReference) - where filter != null - select filter; + where store.Enable == true + let filter = store.Construct>(tabletReference) + where filter != null + select filter; outputMode.Elements = elements.ToList(); if (outputMode.Elements != null && outputMode.Elements.Count > 0) @@ -361,7 +361,7 @@ private void SetBindingHandlerCollectionSettings(IServiceManager serviceManager, Binding = binding }; - if(!targetDict.TryAdd(index, state)) + if (!targetDict.TryAdd(index, state)) targetDict[index] = state; } } diff --git a/OpenTabletDriver.Daemon/Program.cs b/OpenTabletDriver.Daemon/Program.cs index 24986ee37..343b253d0 100644 --- a/OpenTabletDriver.Daemon/Program.cs +++ b/OpenTabletDriver.Daemon/Program.cs @@ -25,7 +25,7 @@ static async Task Main(string[] args) return; } - AppDomain.CurrentDomain.UnhandledException += (sender, e) => + AppDomain.CurrentDomain.UnhandledException += (sender, e) => { var exception = (Exception)e.ExceptionObject; File.WriteAllLines(Path.Join(AppInfo.Current.AppDataDirectory, "daemon.log"), @@ -52,7 +52,7 @@ static async Task Main(string[] args) Argument = new Argument ("config") } }; - rootCommand.Handler = CommandHandler.Create((appdata, config) => + rootCommand.Handler = CommandHandler.Create((appdata, config) => { if (!string.IsNullOrWhiteSpace(appdata?.FullName)) AppInfo.Current.AppDataDirectory = appdata.FullName; @@ -62,7 +62,7 @@ static async Task Main(string[] args) rootCommand.Invoke(args); var host = new RpcHost("OpenTabletDriver.Daemon"); - host.ConnectionStateChanged += (sender, state) => + host.ConnectionStateChanged += (sender, state) => Log.Write("IPC", $"{(state ? "Connected to" : "Disconnected from")} a client.", LogLevel.Debug); await host.Run(BuildDaemon()); diff --git a/OpenTabletDriver.Desktop/Binding/BindingState.cs b/OpenTabletDriver.Desktop/Binding/BindingState.cs index 095aab094..92e1284dd 100644 --- a/OpenTabletDriver.Desktop/Binding/BindingState.cs +++ b/OpenTabletDriver.Desktop/Binding/BindingState.cs @@ -24,4 +24,4 @@ public virtual void Invoke(TabletReference tablet, IDeviceReport report, bool ne PreviousState = newState; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Binding/KeyBinding.cs b/OpenTabletDriver.Desktop/Binding/KeyBinding.cs index 48dccb427..8d96330e9 100644 --- a/OpenTabletDriver.Desktop/Binding/KeyBinding.cs +++ b/OpenTabletDriver.Desktop/Binding/KeyBinding.cs @@ -39,9 +39,9 @@ public static IEnumerable ValidKeys get => validKeys ??= DesktopInterop.CurrentPlatform switch { PluginPlatform.Windows => WindowsVirtualKeyboard.EtoKeysymToVK.Keys, - PluginPlatform.Linux => EvdevVirtualKeyboard.EtoKeysymToEventCode.Keys, - PluginPlatform.MacOS => MacOSVirtualKeyboard.EtoKeysymToVK.Keys, - _ => null + PluginPlatform.Linux => EvdevVirtualKeyboard.EtoKeysymToEventCode.Keys, + PluginPlatform.MacOS => MacOSVirtualKeyboard.EtoKeysymToVK.Keys, + _ => null }; } diff --git a/OpenTabletDriver.Desktop/Binding/LinuxArtistMode/LinuxArtistModeButtonBinding.cs b/OpenTabletDriver.Desktop/Binding/LinuxArtistMode/LinuxArtistModeButtonBinding.cs index e91f62aa9..e77fa0764 100644 --- a/OpenTabletDriver.Desktop/Binding/LinuxArtistMode/LinuxArtistModeButtonBinding.cs +++ b/OpenTabletDriver.Desktop/Binding/LinuxArtistMode/LinuxArtistModeButtonBinding.cs @@ -45,4 +45,4 @@ private void SetState(bool state) virtualTablet.SetKeyState(eventCode, state); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Binding/MouseBinding.cs b/OpenTabletDriver.Desktop/Binding/MouseBinding.cs index 817608182..559e51172 100644 --- a/OpenTabletDriver.Desktop/Binding/MouseBinding.cs +++ b/OpenTabletDriver.Desktop/Binding/MouseBinding.cs @@ -41,4 +41,4 @@ public static IEnumerable ValidButtons public override string ToString() => $"{PLUGIN_NAME}: {Button}"; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Binding/MultiKeyBinding.cs b/OpenTabletDriver.Desktop/Binding/MultiKeyBinding.cs index 2877f0c22..32267e88f 100644 --- a/OpenTabletDriver.Desktop/Binding/MultiKeyBinding.cs +++ b/OpenTabletDriver.Desktop/Binding/MultiKeyBinding.cs @@ -52,4 +52,4 @@ private IList ParseKeys(string str) public override string ToString() => $"{PLUGIN_NAME}: {Keys}"; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Compression/CompressionTools.cs b/OpenTabletDriver.Desktop/Compression/CompressionTools.cs index 6cd71f6af..d09459b77 100644 --- a/OpenTabletDriver.Desktop/Compression/CompressionTools.cs +++ b/OpenTabletDriver.Desktop/Compression/CompressionTools.cs @@ -29,7 +29,7 @@ public static void Decompress(this Stream stream, string outputDir, string forma throw new NotSupportedException($"{format} is not supported."); } } - + public static void Decompress(this ZipInputStream zipStream, string outputDir) { while (zipStream.GetNextEntry() is ZipEntry entry) @@ -60,4 +60,4 @@ public static void Decompress(this GZipInputStream gzipStream, string outputDir) archive.ExtractContents(outputDir); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Conversion/ConversionFactorAreaConverter.cs b/OpenTabletDriver.Desktop/Conversion/ConversionFactorAreaConverter.cs index 77feb1ca1..106c5a3e0 100644 --- a/OpenTabletDriver.Desktop/Conversion/ConversionFactorAreaConverter.cs +++ b/OpenTabletDriver.Desktop/Conversion/ConversionFactorAreaConverter.cs @@ -32,4 +32,4 @@ public Area Convert(TabletReference tablet, double top, double left, double bott return new Area((float)width, (float)height, new Vector2((float)offsetX, (float)offsetY), 0f); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Conversion/PercentageAreaConverter.cs b/OpenTabletDriver.Desktop/Conversion/PercentageAreaConverter.cs index 5a8bf1033..10bc0c447 100644 --- a/OpenTabletDriver.Desktop/Conversion/PercentageAreaConverter.cs +++ b/OpenTabletDriver.Desktop/Conversion/PercentageAreaConverter.cs @@ -27,4 +27,4 @@ public Area Convert(TabletReference tablet, double up, double left, double down, return new Area((float)width, (float)height, new Vector2((float)offsetX, (float)offsetY), 0f); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Conversion/XP_PenDriverAreaConverter.cs b/OpenTabletDriver.Desktop/Conversion/XP_PenDriverAreaConverter.cs index 25e7f54a6..bda1f7a55 100644 --- a/OpenTabletDriver.Desktop/Conversion/XP_PenDriverAreaConverter.cs +++ b/OpenTabletDriver.Desktop/Conversion/XP_PenDriverAreaConverter.cs @@ -28,4 +28,4 @@ public Area Convert(TabletReference tablet, double w, double h, double x, double return new Area((float)width, (float)height, new Vector2((float)offsetX, (float)offsetY), 0f); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Converters/VersionConverter.cs b/OpenTabletDriver.Desktop/Converters/VersionConverter.cs index 5eda9fbd6..bb72accbf 100644 --- a/OpenTabletDriver.Desktop/Converters/VersionConverter.cs +++ b/OpenTabletDriver.Desktop/Converters/VersionConverter.cs @@ -15,4 +15,4 @@ public override void WriteJson(JsonWriter writer, Version value, JsonSerializer writer.WriteValue(value.ToString()); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/DesktopDeviceConfigurationProvider.cs b/OpenTabletDriver.Desktop/DesktopDeviceConfigurationProvider.cs index 907b6f991..db36a097f 100644 --- a/OpenTabletDriver.Desktop/DesktopDeviceConfigurationProvider.cs +++ b/OpenTabletDriver.Desktop/DesktopDeviceConfigurationProvider.cs @@ -53,4 +53,4 @@ private enum ConfigurationSource File } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/DesktopReportParserProvider.cs b/OpenTabletDriver.Desktop/DesktopReportParserProvider.cs index 4379b912d..bdb1cbc71 100644 --- a/OpenTabletDriver.Desktop/DesktopReportParserProvider.cs +++ b/OpenTabletDriver.Desktop/DesktopReportParserProvider.cs @@ -11,4 +11,4 @@ public IReportParser GetReportParser(string reportParserName) return AppInfo.PluginManager.ConstructObject>(reportParserName); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Diagnostics/DiagnosticInfo.cs b/OpenTabletDriver.Desktop/Diagnostics/DiagnosticInfo.cs index d06fb4675..31e7b3052 100644 --- a/OpenTabletDriver.Desktop/Diagnostics/DiagnosticInfo.cs +++ b/OpenTabletDriver.Desktop/Diagnostics/DiagnosticInfo.cs @@ -5,9 +5,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using OpenTabletDriver.Plugin; +using OpenTabletDriver.Plugin.Attributes; using OpenTabletDriver.Plugin.Devices; using OpenTabletDriver.Plugin.Logging; -using OpenTabletDriver.Plugin.Attributes; namespace OpenTabletDriver.Desktop.Diagnostics { diff --git a/OpenTabletDriver.Desktop/Diagnostics/EnvironmentDictionary.cs b/OpenTabletDriver.Desktop/Diagnostics/EnvironmentDictionary.cs index 8f459ce2f..bb7eddbb9 100644 --- a/OpenTabletDriver.Desktop/Diagnostics/EnvironmentDictionary.cs +++ b/OpenTabletDriver.Desktop/Diagnostics/EnvironmentDictionary.cs @@ -30,4 +30,4 @@ private void AddVariable(params string[] variables) } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/FileUtilities.cs b/OpenTabletDriver.Desktop/FileUtilities.cs index a3fc3184f..b9ce084f7 100644 --- a/OpenTabletDriver.Desktop/FileUtilities.cs +++ b/OpenTabletDriver.Desktop/FileUtilities.cs @@ -62,4 +62,4 @@ public static string InjectEnvironmentVariables(string str) return sb.ToString(); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Interop/DesktopInterop.cs b/OpenTabletDriver.Desktop/Interop/DesktopInterop.cs index 5bcc88e19..cc640a89c 100644 --- a/OpenTabletDriver.Desktop/Interop/DesktopInterop.cs +++ b/OpenTabletDriver.Desktop/Interop/DesktopInterop.cs @@ -65,30 +65,30 @@ public static void OpenFolder(string path) public static IUpdater Updater => CurrentPlatform switch { PluginPlatform.Windows => updater ??= new WindowsUpdater(), - PluginPlatform.MacOS => updater ??= new MacOSUpdater(), - _ => null + PluginPlatform.MacOS => updater ??= new MacOSUpdater(), + _ => null }; public static ITimer Timer => CurrentPlatform switch { PluginPlatform.Windows => new WindowsTimer(), - _ => new FallbackTimer() + _ => new FallbackTimer() }; public static IAbsolutePointer AbsolutePointer => CurrentPlatform switch { PluginPlatform.Windows => new WindowsAbsolutePointer(), - PluginPlatform.Linux => absolutePointer ??= new EvdevAbsolutePointer(), - PluginPlatform.MacOS => new MacOSAbsolutePointer(), - _ => null + PluginPlatform.Linux => absolutePointer ??= new EvdevAbsolutePointer(), + PluginPlatform.MacOS => new MacOSAbsolutePointer(), + _ => null }; public static IRelativePointer RelativePointer => CurrentPlatform switch { PluginPlatform.Windows => new WindowsRelativePointer(), - PluginPlatform.Linux => relativePointer ??= new EvdevRelativePointer(), - PluginPlatform.MacOS => new MacOSRelativePointer(), - _ => null + PluginPlatform.Linux => relativePointer ??= new EvdevRelativePointer(), + PluginPlatform.MacOS => new MacOSRelativePointer(), + _ => null }; public static IPressureHandler VirtualTablet => CurrentPlatform switch @@ -100,9 +100,9 @@ public static void OpenFolder(string path) public static IVirtualKeyboard VirtualKeyboard => CurrentPlatform switch { PluginPlatform.Windows => new WindowsVirtualKeyboard(), - PluginPlatform.Linux => virtualKeyboard ??= new EvdevVirtualKeyboard(), - PluginPlatform.MacOS => new MacOSVirtualKeyboard(), - _ => null + PluginPlatform.Linux => virtualKeyboard ??= new EvdevVirtualKeyboard(), + PluginPlatform.MacOS => new MacOSVirtualKeyboard(), + _ => null }; public static IVirtualScreen VirtualScreen => virtualScreen ??= CurrentPlatform switch diff --git a/OpenTabletDriver.Desktop/Interop/Display/MacOSDisplay.cs b/OpenTabletDriver.Desktop/Interop/Display/MacOSDisplay.cs index ec63e0ee3..57dd137f8 100644 --- a/OpenTabletDriver.Desktop/Interop/Display/MacOSDisplay.cs +++ b/OpenTabletDriver.Desktop/Interop/Display/MacOSDisplay.cs @@ -12,7 +12,7 @@ namespace OpenTabletDriver.Desktop.Interop.Display public class MacOSDisplay : IVirtualScreen { - public float Width + public float Width { get { @@ -50,15 +50,15 @@ public override string ToString() var offsetY = displayBounds.Min(d => d.origin.y); return from display in displayBounds - select new Display( - (float)display.size.width, - (float)display.size.height, - new Vector2( - (float)(display.origin.x - offsetX), - (float)(display.origin.y - offsetY) - ), - displayBounds.IndexOf(display) - ); + select new Display( + (float)display.size.width, + (float)display.size.height, + new Vector2( + (float)(display.origin.x - offsetX), + (float)(display.origin.y - offsetY) + ), + displayBounds.IndexOf(display) + ); }); private static IEnumerable GetDisplayBounds() @@ -67,7 +67,7 @@ private static IEnumerable GetDisplayBounds() CGGetActiveDisplayList(10, displayIdBuf, out var count); var displayIds = displayIdBuf.Take((int)count); return from id in displayIds - select CGDisplayBounds(id); + select CGDisplayBounds(id); } } } diff --git a/OpenTabletDriver.Desktop/Interop/Display/WindowsDisplay.cs b/OpenTabletDriver.Desktop/Interop/Display/WindowsDisplay.cs index 8c0414986..0864998a3 100644 --- a/OpenTabletDriver.Desktop/Interop/Display/WindowsDisplay.cs +++ b/OpenTabletDriver.Desktop/Interop/Display/WindowsDisplay.cs @@ -47,7 +47,7 @@ public WindowsDisplay() private static List GetDisplays() { List displayCollection = new List(); - MonitorEnumDelegate monitorDelegate = delegate (IntPtr hMonitor, IntPtr hdcMonitor, ref Rect lprcMonitor, IntPtr dwData) + MonitorEnumDelegate monitorDelegate = delegate (IntPtr hMonitor, IntPtr hdcMonitor, ref Rect lprcMonitor, IntPtr dwData) { MonitorInfoEx monitorInfo = new MonitorInfoEx(); monitorInfo.size = (uint)Marshal.SizeOf(monitorInfo); diff --git a/OpenTabletDriver.Desktop/Interop/Input/EvdevVirtualMouse.cs b/OpenTabletDriver.Desktop/Interop/Input/EvdevVirtualMouse.cs index 98539c191..ef5b90231 100644 --- a/OpenTabletDriver.Desktop/Interop/Input/EvdevVirtualMouse.cs +++ b/OpenTabletDriver.Desktop/Interop/Input/EvdevVirtualMouse.cs @@ -30,12 +30,12 @@ public void MouseUp(MouseButton button) protected virtual EventCode? GetCode(MouseButton button) => button switch { - MouseButton.Left => EventCode.BTN_LEFT, - MouseButton.Middle => EventCode.BTN_MIDDLE, - MouseButton.Right => EventCode.BTN_RIGHT, - MouseButton.Forward => EventCode.BTN_FORWARD, + MouseButton.Left => EventCode.BTN_LEFT, + MouseButton.Middle => EventCode.BTN_MIDDLE, + MouseButton.Right => EventCode.BTN_RIGHT, + MouseButton.Forward => EventCode.BTN_FORWARD, MouseButton.Backward => EventCode.BTN_BACK, - _ => null + _ => null }; public virtual void Dispose() diff --git a/OpenTabletDriver.Desktop/Migration/LegacySettings/V5/Settings.cs b/OpenTabletDriver.Desktop/Migration/LegacySettings/V5/Settings.cs index 78476cb9a..f78687df5 100644 --- a/OpenTabletDriver.Desktop/Migration/LegacySettings/V5/Settings.cs +++ b/OpenTabletDriver.Desktop/Migration/LegacySettings/V5/Settings.cs @@ -63,4 +63,4 @@ internal class Settings public bool IsValid() => OutputMode != null; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/PresetManager.cs b/OpenTabletDriver.Desktop/PresetManager.cs index 82b0b2ca9..73b590e91 100644 --- a/OpenTabletDriver.Desktop/PresetManager.cs +++ b/OpenTabletDriver.Desktop/PresetManager.cs @@ -1,5 +1,5 @@ -using System.IO; using System.Collections.Generic; +using System.IO; using OpenTabletDriver.Plugin; namespace OpenTabletDriver.Desktop diff --git a/OpenTabletDriver.Desktop/Profiles/AbsoluteModeSettings.cs b/OpenTabletDriver.Desktop/Profiles/AbsoluteModeSettings.cs index a3f9db80f..acff19e20 100644 --- a/OpenTabletDriver.Desktop/Profiles/AbsoluteModeSettings.cs +++ b/OpenTabletDriver.Desktop/Profiles/AbsoluteModeSettings.cs @@ -56,4 +56,4 @@ public static AbsoluteModeSettings GetDefaults(DigitizerSpecifications digitizer }; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Profiles/AreaSettings.cs b/OpenTabletDriver.Desktop/Profiles/AreaSettings.cs index 8f988781b..2a3b50b92 100644 --- a/OpenTabletDriver.Desktop/Profiles/AreaSettings.cs +++ b/OpenTabletDriver.Desktop/Profiles/AreaSettings.cs @@ -87,4 +87,4 @@ public static AreaSettings GetDefaults(IDisplay display) }; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Profiles/Profile.cs b/OpenTabletDriver.Desktop/Profiles/Profile.cs index 12c365182..f0287d7de 100644 --- a/OpenTabletDriver.Desktop/Profiles/Profile.cs +++ b/OpenTabletDriver.Desktop/Profiles/Profile.cs @@ -68,4 +68,4 @@ public static Profile GetDefaults(TabletReference tablet) }; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Profiles/ProfileCollection.cs b/OpenTabletDriver.Desktop/Profiles/ProfileCollection.cs index 3ca4e0453..5e884bcea 100644 --- a/OpenTabletDriver.Desktop/Profiles/ProfileCollection.cs +++ b/OpenTabletDriver.Desktop/Profiles/ProfileCollection.cs @@ -50,4 +50,4 @@ public Profile Generate(TabletReference tablet) return profile; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Profiles/RelativeModeSettings.cs b/OpenTabletDriver.Desktop/Profiles/RelativeModeSettings.cs index 7d3a7161c..52bd9ef1f 100644 --- a/OpenTabletDriver.Desktop/Profiles/RelativeModeSettings.cs +++ b/OpenTabletDriver.Desktop/Profiles/RelativeModeSettings.cs @@ -59,4 +59,4 @@ public static RelativeModeSettings GetDefaults() }; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/RPC/DebugReportData.cs b/OpenTabletDriver.Desktop/RPC/DebugReportData.cs index 3f4010f14..f2583bb13 100644 --- a/OpenTabletDriver.Desktop/RPC/DebugReportData.cs +++ b/OpenTabletDriver.Desktop/RPC/DebugReportData.cs @@ -22,11 +22,11 @@ public DebugReportData(TabletReference tablet, IDeviceReport report) public TabletReference Tablet { set; get; } public string Path { set; get; } public JToken Data { set; get; } - + public object ToObject() { var type = AppInfo.PluginManager.PluginTypes.First(t => t.FullName == Path); return Data.ToObject(type); - } + } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Reflection/DesktopPluginManager.cs b/OpenTabletDriver.Desktop/Reflection/DesktopPluginManager.cs index 3253c8341..97a739d63 100644 --- a/OpenTabletDriver.Desktop/Reflection/DesktopPluginManager.cs +++ b/OpenTabletDriver.Desktop/Reflection/DesktopPluginManager.cs @@ -105,10 +105,10 @@ protected void LoadPlugin(DirectoryInfo directory) protected void ImportTypes(PluginContext context) { var types = from asm in context.Assemblies - where IsLoadable(asm) - from type in asm.GetExportedTypes() - where IsPluginType(type) - select type; + where IsLoadable(asm) + from type in asm.GetExportedTypes() + where IsPluginType(type) + select type; types.AsParallel().ForAll(type => { diff --git a/OpenTabletDriver.Desktop/Reflection/Extensions.cs b/OpenTabletDriver.Desktop/Reflection/Extensions.cs index 3ea79c878..3222e2db5 100644 --- a/OpenTabletDriver.Desktop/Reflection/Extensions.cs +++ b/OpenTabletDriver.Desktop/Reflection/Extensions.cs @@ -32,4 +32,4 @@ public static void CopyTo(this DirectoryInfo source, DirectoryInfo destination) } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Reflection/IServiceManager.cs b/OpenTabletDriver.Desktop/Reflection/IServiceManager.cs index c3f89c6a8..cdd628368 100644 --- a/OpenTabletDriver.Desktop/Reflection/IServiceManager.cs +++ b/OpenTabletDriver.Desktop/Reflection/IServiceManager.cs @@ -7,4 +7,4 @@ public interface IServiceManager : IServiceProvider bool AddService(Func value); void ResetServices(); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Reflection/Metadata/PluginMetadata.cs b/OpenTabletDriver.Desktop/Reflection/Metadata/PluginMetadata.cs index 2dd0b1878..e3b47336f 100644 --- a/OpenTabletDriver.Desktop/Reflection/Metadata/PluginMetadata.cs +++ b/OpenTabletDriver.Desktop/Reflection/Metadata/PluginMetadata.cs @@ -137,4 +137,4 @@ public static bool Match(PluginMetadata primary, PluginMetadata secondary) primary.RepositoryUrl == secondary.RepositoryUrl; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Reflection/PluginManager.cs b/OpenTabletDriver.Desktop/Reflection/PluginManager.cs index d4ac1c921..00dfddf7f 100644 --- a/OpenTabletDriver.Desktop/Reflection/PluginManager.cs +++ b/OpenTabletDriver.Desktop/Reflection/PluginManager.cs @@ -23,15 +23,15 @@ public PluginManager() }; libTypes = (from type in typeof(IDriver).Assembly.GetExportedTypes() - where type.IsAbstract || type.IsInterface - select type).ToArray(); + where type.IsAbstract || type.IsInterface + select type).ToArray(); var internalTypes = from asm in assemblies - from type in asm.DefinedTypes - where type.IsPublic && !(type.IsInterface || type.IsAbstract) - where IsPluginType(type) - where IsPlatformSupported(type) - select type; + from type in asm.DefinedTypes + where type.IsPublic && !(type.IsInterface || type.IsAbstract) + where IsPluginType(type) + where IsPlatformSupported(type) + select type; pluginTypes = new ConcurrentBag(internalTypes); } @@ -51,10 +51,10 @@ public virtual T ConstructObject(string name, object[] args = null) where T : if (PluginTypes.FirstOrDefault(t => t.FullName == name) is TypeInfo type) { var matchingConstructors = from ctor in type.GetConstructors() - let parameters = ctor.GetParameters() - where parameters.Length == args.Length - where IsValidParameterFor(args, parameters) - select ctor; + let parameters = ctor.GetParameters() + where parameters.Length == args.Length + where IsValidParameterFor(args, parameters) + select ctor; if (matchingConstructors.FirstOrDefault() is ConstructorInfo constructor) { @@ -87,8 +87,8 @@ where IsValidParameterFor(args, parameters) public virtual IReadOnlyCollection GetChildTypes() { var children = from type in PluginTypes - where typeof(T).IsAssignableFrom(type) - select type; + where typeof(T).IsAssignableFrom(type) + select type; return children.ToArray(); } @@ -117,8 +117,8 @@ public static void Inject(IServiceProvider serviceProvider, object obj, Type typ return; var resolvedProperties = from property in type.GetProperties() - where property.GetCustomAttribute() is ResolvedAttribute - select property; + where property.GetCustomAttribute() is ResolvedAttribute + select property; foreach (var property in resolvedProperties) { @@ -128,8 +128,8 @@ where property.GetCustomAttribute() is ResolvedAttribute } var resolvedFields = from field in type.GetFields() - where field.GetCustomAttribute() is ResolvedAttribute - select field; + where field.GetCustomAttribute() is ResolvedAttribute + select field; foreach (var field in resolvedFields) { diff --git a/OpenTabletDriver.Desktop/Reflection/PluginSetting.cs b/OpenTabletDriver.Desktop/Reflection/PluginSetting.cs index 3640ce0e9..69220b492 100644 --- a/OpenTabletDriver.Desktop/Reflection/PluginSetting.cs +++ b/OpenTabletDriver.Desktop/Reflection/PluginSetting.cs @@ -79,4 +79,4 @@ public T GetValueOrDefault(PropertyInfo property) } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Reflection/PluginSettingStore.cs b/OpenTabletDriver.Desktop/Reflection/PluginSettingStore.cs index 32badf47f..d87b42985 100644 --- a/OpenTabletDriver.Desktop/Reflection/PluginSettingStore.cs +++ b/OpenTabletDriver.Desktop/Reflection/PluginSettingStore.cs @@ -172,4 +172,4 @@ private static void TriggerEventMethods(object obj, TabletReference tabletRefere method.Invoke(obj, Array.Empty()); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Reflection/PluginSettingStoreCollection.cs b/OpenTabletDriver.Desktop/Reflection/PluginSettingStoreCollection.cs index ff9cf14ca..f60ccd9a1 100644 --- a/OpenTabletDriver.Desktop/Reflection/PluginSettingStoreCollection.cs +++ b/OpenTabletDriver.Desktop/Reflection/PluginSettingStoreCollection.cs @@ -46,4 +46,4 @@ public PluginSettingStore FromType(TypeInfo type) return store; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Reflection/ServiceManager.cs b/OpenTabletDriver.Desktop/Reflection/ServiceManager.cs index 154c3be29..03b4c7e72 100644 --- a/OpenTabletDriver.Desktop/Reflection/ServiceManager.cs +++ b/OpenTabletDriver.Desktop/Reflection/ServiceManager.cs @@ -33,7 +33,7 @@ public object GetService(Type serviceType) { return services.ContainsKey(serviceType) ? services[serviceType].Invoke() : null; } - - public T GetService() where T : class => GetService(typeof(T)) as T; + + public T GetService() where T : class => GetService(typeof(T)) as T; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Serialization.cs b/OpenTabletDriver.Desktop/Serialization.cs index 644bdaee9..6b00805d0 100644 --- a/OpenTabletDriver.Desktop/Serialization.cs +++ b/OpenTabletDriver.Desktop/Serialization.cs @@ -1,7 +1,7 @@ using System.IO; using Newtonsoft.Json; -using OpenTabletDriver.Plugin; using OpenTabletDriver.Desktop.Converters; +using OpenTabletDriver.Plugin; namespace OpenTabletDriver.Desktop { diff --git a/OpenTabletDriver.Desktop/Settings.cs b/OpenTabletDriver.Desktop/Settings.cs index 4bdb1e0c9..80e7fa632 100644 --- a/OpenTabletDriver.Desktop/Settings.cs +++ b/OpenTabletDriver.Desktop/Settings.cs @@ -1,7 +1,7 @@ +using System; using System.ComponentModel; using System.IO; using System.Text.RegularExpressions; -using System; using Newtonsoft.Json; using OpenTabletDriver.Desktop.Migration; using OpenTabletDriver.Desktop.Profiles; diff --git a/OpenTabletDriver.Desktop/Updater/IUpdater.cs b/OpenTabletDriver.Desktop/Updater/IUpdater.cs index 569cc43c1..fbd554592 100644 --- a/OpenTabletDriver.Desktop/Updater/IUpdater.cs +++ b/OpenTabletDriver.Desktop/Updater/IUpdater.cs @@ -9,4 +9,4 @@ public interface IUpdater Task GetRelease(); Task InstallUpdate(); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Updater/MacOSUpdater.cs b/OpenTabletDriver.Desktop/Updater/MacOSUpdater.cs index 0a63ed5b4..72169a79d 100644 --- a/OpenTabletDriver.Desktop/Updater/MacOSUpdater.cs +++ b/OpenTabletDriver.Desktop/Updater/MacOSUpdater.cs @@ -15,7 +15,7 @@ namespace OpenTabletDriver.Desktop.Updater { public class MacOSUpdater : Updater { - public MacOSUpdater() + public MacOSUpdater() : this(AssemblyVersion, AppDomain.CurrentDomain.BaseDirectory, AppInfo.Current.AppDataDirectory, @@ -57,4 +57,4 @@ protected override async Task Download(Release release) } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Updater/Updater.cs b/OpenTabletDriver.Desktop/Updater/Updater.cs index b19015220..a990fe26c 100644 --- a/OpenTabletDriver.Desktop/Updater/Updater.cs +++ b/OpenTabletDriver.Desktop/Updater/Updater.cs @@ -183,4 +183,4 @@ protected static void Copy(string source, string target) } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/Updater/WindowsUpdater.cs b/OpenTabletDriver.Desktop/Updater/WindowsUpdater.cs index bd66835d8..c18aa03a4 100644 --- a/OpenTabletDriver.Desktop/Updater/WindowsUpdater.cs +++ b/OpenTabletDriver.Desktop/Updater/WindowsUpdater.cs @@ -39,4 +39,4 @@ protected override async Task Download(Release release) } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Desktop/ViewModel.cs b/OpenTabletDriver.Desktop/ViewModel.cs index a0eb8e9e3..86cfe47bf 100644 --- a/OpenTabletDriver.Desktop/ViewModel.cs +++ b/OpenTabletDriver.Desktop/ViewModel.cs @@ -23,4 +23,4 @@ public void AllPropertiesChanged() PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(null)); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Linux/ERRNO.cs b/OpenTabletDriver.Native/Linux/ERRNO.cs index cb70cf60b..875eba105 100644 --- a/OpenTabletDriver.Native/Linux/ERRNO.cs +++ b/OpenTabletDriver.Native/Linux/ERRNO.cs @@ -38,4 +38,4 @@ public enum ERRNO : int EDOM = 33, /* Math argument out of domain of func */ ERANGE = 34 /* Math result not representable */ } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Linux/Evdev/Evdev.cs b/OpenTabletDriver.Native/Linux/Evdev/Evdev.cs index e901ce31f..ca05f1276 100644 --- a/OpenTabletDriver.Native/Linux/Evdev/Evdev.cs +++ b/OpenTabletDriver.Native/Linux/Evdev/Evdev.cs @@ -30,4 +30,4 @@ public static partial class Evdev public const int LIBEVDEV_UINPUT_OPEN_MANAGED = -2; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Linux/Evdev/EvdevDevice.cs b/OpenTabletDriver.Native/Linux/Evdev/EvdevDevice.cs index 5e1c5ea7a..89c3bc480 100644 --- a/OpenTabletDriver.Native/Linux/Evdev/EvdevDevice.cs +++ b/OpenTabletDriver.Native/Linux/Evdev/EvdevDevice.cs @@ -54,7 +54,7 @@ public void EnableTypeCodes(EventType type, params EventCode[] codes) public int Write(EventType type, EventCode code, int value) { - return CanWrite ? libevdev_uinput_write_event(this.uidev, (uint)type, (uint)code, value) : int.MinValue; + return CanWrite ? libevdev_uinput_write_event(this.uidev, (uint)type, (uint)code, value) : int.MinValue; } public bool Sync() diff --git a/OpenTabletDriver.Native/Linux/Evdev/EventType.cs b/OpenTabletDriver.Native/Linux/Evdev/EventType.cs index d740ed0ca..c9aaf584c 100644 --- a/OpenTabletDriver.Native/Linux/Evdev/EventType.cs +++ b/OpenTabletDriver.Native/Linux/Evdev/EventType.cs @@ -8,4 +8,4 @@ public enum EventType : uint EV_ABS = 0x03, INPUT_PROP_DIRECT = 0x01 } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Linux/Evdev/Structs/input_absinfo.cs b/OpenTabletDriver.Native/Linux/Evdev/Structs/input_absinfo.cs index 9763e0a45..285a02192 100644 --- a/OpenTabletDriver.Native/Linux/Evdev/Structs/input_absinfo.cs +++ b/OpenTabletDriver.Native/Linux/Evdev/Structs/input_absinfo.cs @@ -10,6 +10,6 @@ public struct input_absinfo public int maximum; public int fuzz; public int flat; - public int resolution; + public int resolution; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Linux/Timers/ClockID.cs b/OpenTabletDriver.Native/Linux/Timers/ClockID.cs index b79da2165..03b0c8713 100644 --- a/OpenTabletDriver.Native/Linux/Timers/ClockID.cs +++ b/OpenTabletDriver.Native/Linux/Timers/ClockID.cs @@ -15,4 +15,4 @@ public enum ClockID SGICycle, TAI } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Linux/Timers/SigEv.cs b/OpenTabletDriver.Native/Linux/Timers/SigEv.cs index 73f38ddd2..ed116e940 100644 --- a/OpenTabletDriver.Native/Linux/Timers/SigEv.cs +++ b/OpenTabletDriver.Native/Linux/Timers/SigEv.cs @@ -7,4 +7,4 @@ public enum SigEv Thread, ThreadID } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Linux/Timers/Structs/SigEvThread.cs b/OpenTabletDriver.Native/Linux/Timers/Structs/SigEvThread.cs index 25a45d4a6..e6607cfa2 100644 --- a/OpenTabletDriver.Native/Linux/Timers/Structs/SigEvThread.cs +++ b/OpenTabletDriver.Native/Linux/Timers/Structs/SigEvThread.cs @@ -9,4 +9,4 @@ public struct SigEvThread public IntPtr function; public IntPtr attribute; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Linux/Timers/Structs/SigEvent.cs b/OpenTabletDriver.Native/Linux/Timers/Structs/SigEvent.cs index b9f9db8cc..aff3060b7 100644 --- a/OpenTabletDriver.Native/Linux/Timers/Structs/SigEvent.cs +++ b/OpenTabletDriver.Native/Linux/Timers/Structs/SigEvent.cs @@ -20,4 +20,4 @@ public struct SigEvent [FieldOffset(16)] public SigEvThread thread; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Linux/Timers/Structs/SigVal.cs b/OpenTabletDriver.Native/Linux/Timers/Structs/SigVal.cs index e05dae3c5..f0338f569 100644 --- a/OpenTabletDriver.Native/Linux/Timers/Structs/SigVal.cs +++ b/OpenTabletDriver.Native/Linux/Timers/Structs/SigVal.cs @@ -12,4 +12,4 @@ public struct SigVal [FieldOffset(0)] public IntPtr sival_ptr; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Linux/Timers/Structs/TimeSpec.cs b/OpenTabletDriver.Native/Linux/Timers/Structs/TimeSpec.cs index cba353ddd..ad6828e53 100644 --- a/OpenTabletDriver.Native/Linux/Timers/Structs/TimeSpec.cs +++ b/OpenTabletDriver.Native/Linux/Timers/Structs/TimeSpec.cs @@ -8,4 +8,4 @@ public struct TimeSpec public long sec; public long nsec; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Linux/Timers/Structs/TimerSpec.cs b/OpenTabletDriver.Native/Linux/Timers/Structs/TimerSpec.cs index 34f989d09..ee5f0ec05 100644 --- a/OpenTabletDriver.Native/Linux/Timers/Structs/TimerSpec.cs +++ b/OpenTabletDriver.Native/Linux/Timers/Structs/TimerSpec.cs @@ -8,4 +8,4 @@ public struct TimerSpec public TimeSpec interval; public TimeSpec value; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Linux/Timers/TimerFlag.cs b/OpenTabletDriver.Native/Linux/Timers/TimerFlag.cs index d25fe2e5b..17a6777ba 100644 --- a/OpenTabletDriver.Native/Linux/Timers/TimerFlag.cs +++ b/OpenTabletDriver.Native/Linux/Timers/TimerFlag.cs @@ -5,4 +5,4 @@ public enum TimerFlag Default, AbsoluteTime } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Linux/Timers/Timers.cs b/OpenTabletDriver.Native/Linux/Timers/Timers.cs index f95e81add..ee9be4904 100644 --- a/OpenTabletDriver.Native/Linux/Timers/Timers.cs +++ b/OpenTabletDriver.Native/Linux/Timers/Timers.cs @@ -22,4 +22,4 @@ public static class Timers [DllImport(librt, EntryPoint = "timer_delete", SetLastError = true)] public static extern ERRNO TimerDelete(IntPtr timerID); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Linux/Xorg/XLib.cs b/OpenTabletDriver.Native/Linux/Xorg/XLib.cs index 73f9718c3..e0253ad24 100644 --- a/OpenTabletDriver.Native/Linux/Xorg/XLib.cs +++ b/OpenTabletDriver.Native/Linux/Xorg/XLib.cs @@ -3,10 +3,10 @@ namespace OpenTabletDriver.Native.Linux.Xorg { - using IntPtr = IntPtr; using Display = IntPtr; - using Window = IntPtr; + using IntPtr = IntPtr; using KeySym = IntPtr; + using Window = IntPtr; public class XLib { @@ -33,4 +33,4 @@ public static unsafe IntPtr XOpenDisplay(char* display) [DllImport(libX11, EntryPoint = "XDisplayHeight")] public static extern int XDisplayHeight(Display display, int screen_number); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Linux/Xorg/XRRMonitorInfo.cs b/OpenTabletDriver.Native/Linux/Xorg/XRRMonitorInfo.cs index 5549716d3..6071c32af 100644 --- a/OpenTabletDriver.Native/Linux/Xorg/XRRMonitorInfo.cs +++ b/OpenTabletDriver.Native/Linux/Xorg/XRRMonitorInfo.cs @@ -18,4 +18,4 @@ public struct XRRMonitorInfo public int MHeight; public IntPtr Outputs; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Linux/Xorg/XRandr.cs b/OpenTabletDriver.Native/Linux/Xorg/XRandr.cs index edf7bacfb..a77dd658e 100644 --- a/OpenTabletDriver.Native/Linux/Xorg/XRandr.cs +++ b/OpenTabletDriver.Native/Linux/Xorg/XRandr.cs @@ -13,4 +13,4 @@ public static class XRandr [DllImport(libXRandr, EntryPoint = "XRRGetMonitors")] public unsafe extern static XRRMonitorInfo* XRRGetMonitors(Display dpy, Window window, bool get_active, out int nmonitors); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/OSX/Generic/CGEventTapLocation.cs b/OpenTabletDriver.Native/OSX/Generic/CGEventTapLocation.cs index 7307b9db6..5dfe8bc0f 100644 --- a/OpenTabletDriver.Native/OSX/Generic/CGEventTapLocation.cs +++ b/OpenTabletDriver.Native/OSX/Generic/CGEventTapLocation.cs @@ -6,4 +6,4 @@ public enum CGEventTapLocation kCGSessionEventTap = 1, kCGAnnotatedSessionEventTap = 2 } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/OSX/Generic/CGEventType.cs b/OpenTabletDriver.Native/OSX/Generic/CGEventType.cs index c49cfb3f9..544ba175e 100644 --- a/OpenTabletDriver.Native/OSX/Generic/CGEventType.cs +++ b/OpenTabletDriver.Native/OSX/Generic/CGEventType.cs @@ -16,4 +16,4 @@ public enum CGEventType : uint kCGEventOtherMouseUp = 26, kCGEventOtherMouseDragged = 27 } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/OSX/Generic/CGPoint.cs b/OpenTabletDriver.Native/OSX/Generic/CGPoint.cs index 3178aea9a..00cee4bca 100644 --- a/OpenTabletDriver.Native/OSX/Generic/CGPoint.cs +++ b/OpenTabletDriver.Native/OSX/Generic/CGPoint.cs @@ -26,4 +26,4 @@ public CGPoint(double x, double y) return new CGPoint(a.x - b.x, a.y - b.y); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/OSX/Generic/CGRect.cs b/OpenTabletDriver.Native/OSX/Generic/CGRect.cs index 2d31f00a4..242987d41 100644 --- a/OpenTabletDriver.Native/OSX/Generic/CGRect.cs +++ b/OpenTabletDriver.Native/OSX/Generic/CGRect.cs @@ -14,4 +14,4 @@ public CGRect(CGPoint origin, CGSize size) this.size = size; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/OSX/Generic/CGSize.cs b/OpenTabletDriver.Native/OSX/Generic/CGSize.cs index 24e6fad8c..fba1bf55b 100644 --- a/OpenTabletDriver.Native/OSX/Generic/CGSize.cs +++ b/OpenTabletDriver.Native/OSX/Generic/CGSize.cs @@ -11,4 +11,4 @@ public CGSize(double width, double height) this.height = height; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/OSX/Input/CGMouseButton.cs b/OpenTabletDriver.Native/OSX/Input/CGMouseButton.cs index 7f83d9655..b11911db8 100644 --- a/OpenTabletDriver.Native/OSX/Input/CGMouseButton.cs +++ b/OpenTabletDriver.Native/OSX/Input/CGMouseButton.cs @@ -8,4 +8,4 @@ public enum CGMouseButton : uint kCGMouseButtonBackward = 3, kCGMouseButtonForward = 4, } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/OSX/OSX.cs b/OpenTabletDriver.Native/OSX/OSX.cs index 6ed15f024..3cc250485 100644 --- a/OpenTabletDriver.Native/OSX/OSX.cs +++ b/OpenTabletDriver.Native/OSX/OSX.cs @@ -5,10 +5,10 @@ namespace OpenTabletDriver.Native.OSX { - using CGEventRef = IntPtr; using CGDirectDisplayID = UInt32; - using CGEventSourceRef = IntPtr; using CGError = Int32; + using CGEventRef = IntPtr; + using CGEventSourceRef = IntPtr; public static class OSX { @@ -50,4 +50,4 @@ public extern static CGError CGGetActiveDisplayList(uint maxDisplays, [DllImport(Quartz)] public extern static CGRect CGDisplayBounds(CGDirectDisplayID displayID); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/CM/CM_NOTIFY_ACTION.cs b/OpenTabletDriver.Native/Windows/CM/CM_NOTIFY_ACTION.cs index 22fa09b62..d3416779a 100644 --- a/OpenTabletDriver.Native/Windows/CM/CM_NOTIFY_ACTION.cs +++ b/OpenTabletDriver.Native/Windows/CM/CM_NOTIFY_ACTION.cs @@ -14,4 +14,4 @@ public enum CM_NOTIFY_ACTION DEVICEINSTANCEREMOVED, MAX } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/CM/CM_NOTIFY_EVENT_DATA.cs b/OpenTabletDriver.Native/Windows/CM/CM_NOTIFY_EVENT_DATA.cs index a656dda29..81361a7bd 100644 --- a/OpenTabletDriver.Native/Windows/CM/CM_NOTIFY_EVENT_DATA.cs +++ b/OpenTabletDriver.Native/Windows/CM/CM_NOTIFY_EVENT_DATA.cs @@ -33,4 +33,4 @@ public unsafe ref struct CM_NOTIFY_EVENT_DATA [FieldOffset(8)] public fixed char InstanceId[1]; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/CM/CM_NOTIFY_FILTER.cs b/OpenTabletDriver.Native/Windows/CM/CM_NOTIFY_FILTER.cs index e2a4aa89f..3f61bead8 100644 --- a/OpenTabletDriver.Native/Windows/CM/CM_NOTIFY_FILTER.cs +++ b/OpenTabletDriver.Native/Windows/CM/CM_NOTIFY_FILTER.cs @@ -103,4 +103,4 @@ public static CM_NOTIFY_FILTER Create(string instanceId) return filter; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/CM/CM_NOTIFY_FILTER_FLAG.cs b/OpenTabletDriver.Native/Windows/CM/CM_NOTIFY_FILTER_FLAG.cs index 38a1c546c..97d8292dc 100644 --- a/OpenTabletDriver.Native/Windows/CM/CM_NOTIFY_FILTER_FLAG.cs +++ b/OpenTabletDriver.Native/Windows/CM/CM_NOTIFY_FILTER_FLAG.cs @@ -6,4 +6,4 @@ public enum CM_NOTIFY_FILTER_FLAG ALL_INTERFACE_CLASSES, ALL_DEVICE_INSTANCES } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/CM/CM_NOTIFY_FILTER_TYPE.cs b/OpenTabletDriver.Native/Windows/CM/CM_NOTIFY_FILTER_TYPE.cs index f6829af29..a7d3ea37d 100644 --- a/OpenTabletDriver.Native/Windows/CM/CM_NOTIFY_FILTER_TYPE.cs +++ b/OpenTabletDriver.Native/Windows/CM/CM_NOTIFY_FILTER_TYPE.cs @@ -7,4 +7,4 @@ public enum CM_NOTIFY_FILTER_TYPE DEVICEINSTANCE, MAX } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/CM/CR.cs b/OpenTabletDriver.Native/Windows/CM/CR.cs index fe9a4da7a..96213ff81 100644 --- a/OpenTabletDriver.Native/Windows/CM/CR.cs +++ b/OpenTabletDriver.Native/Windows/CM/CR.cs @@ -68,4 +68,4 @@ public enum CR INVALID_STRUCTURE_SIZE = 0x0000003B, NUM_CR_RESULTS = 0x0000003C } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/CM/SafeCmNotificationHandle.cs b/OpenTabletDriver.Native/Windows/CM/SafeCmNotificationHandle.cs index c6b920d60..a96a7a8fb 100644 --- a/OpenTabletDriver.Native/Windows/CM/SafeCmNotificationHandle.cs +++ b/OpenTabletDriver.Native/Windows/CM/SafeCmNotificationHandle.cs @@ -16,4 +16,4 @@ protected override bool ReleaseHandle() return CM_Unregister_Notification(handle) == CR.SUCCESS; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/CfgMgr32.cs b/OpenTabletDriver.Native/Windows/CfgMgr32.cs index 8ace82cc9..e02a6e874 100644 --- a/OpenTabletDriver.Native/Windows/CfgMgr32.cs +++ b/OpenTabletDriver.Native/Windows/CfgMgr32.cs @@ -15,4 +15,4 @@ public static class CfgMgr32 [DllImport("cfgmgr32.dll", CharSet = CharSet.Unicode)] public static extern CR CM_Unregister_Notification(IntPtr NotifyContext); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/Display/DevMode.cs b/OpenTabletDriver.Native/Windows/Display/DevMode.cs index 6c0624e7d..368d06f10 100644 --- a/OpenTabletDriver.Native/Windows/Display/DevMode.cs +++ b/OpenTabletDriver.Native/Windows/Display/DevMode.cs @@ -38,4 +38,4 @@ public struct DevMode public int dmPanningWidth; public int dmPanningHeight; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/Display/DisplayInfo.cs b/OpenTabletDriver.Native/Windows/Display/DisplayInfo.cs index 510f7b84d..87800b8c3 100644 --- a/OpenTabletDriver.Native/Windows/Display/DisplayInfo.cs +++ b/OpenTabletDriver.Native/Windows/Display/DisplayInfo.cs @@ -25,4 +25,4 @@ public override string ToString() return string.Format("{0}x{1}@{2},{3}", Width, Height, Left, Top); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/Display/DpiType.cs b/OpenTabletDriver.Native/Windows/Display/DpiType.cs index bf11e8d7f..0964466e8 100644 --- a/OpenTabletDriver.Native/Windows/Display/DpiType.cs +++ b/OpenTabletDriver.Native/Windows/Display/DpiType.cs @@ -6,4 +6,4 @@ public enum DpiType Angular, Raw } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/Display/MONITORINFOF.cs b/OpenTabletDriver.Native/Windows/Display/MONITORINFOF.cs index 86ac82a79..20ab46c0f 100644 --- a/OpenTabletDriver.Native/Windows/Display/MONITORINFOF.cs +++ b/OpenTabletDriver.Native/Windows/Display/MONITORINFOF.cs @@ -4,4 +4,4 @@ public enum MONITORINFOF : ulong { PRIMARY = 1 } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/Display/MonitorInfoEx.cs b/OpenTabletDriver.Native/Windows/Display/MonitorInfoEx.cs index 439b2d7c1..023b7ea15 100644 --- a/OpenTabletDriver.Native/Windows/Display/MonitorInfoEx.cs +++ b/OpenTabletDriver.Native/Windows/Display/MonitorInfoEx.cs @@ -12,4 +12,4 @@ public struct MonitorInfoEx [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)] public string deviceName; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/Generic/POINT.cs b/OpenTabletDriver.Native/Windows/Generic/POINT.cs index 6b4e3e880..bdcffe4b3 100644 --- a/OpenTabletDriver.Native/Windows/Generic/POINT.cs +++ b/OpenTabletDriver.Native/Windows/Generic/POINT.cs @@ -14,4 +14,4 @@ public POINT(int x, int y) this.Y = y; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/Generic/Rect.cs b/OpenTabletDriver.Native/Windows/Generic/Rect.cs index 36daa0b5c..4f79099f0 100644 --- a/OpenTabletDriver.Native/Windows/Generic/Rect.cs +++ b/OpenTabletDriver.Native/Windows/Generic/Rect.cs @@ -10,4 +10,4 @@ public struct Rect public int right; public int bottom; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/Generic/SafeFileHandle.cs b/OpenTabletDriver.Native/Windows/Generic/SafeFileHandle.cs index b8cb07b7b..b84fda5c1 100644 --- a/OpenTabletDriver.Native/Windows/Generic/SafeFileHandle.cs +++ b/OpenTabletDriver.Native/Windows/Generic/SafeFileHandle.cs @@ -14,4 +14,4 @@ protected override bool ReleaseHandle() return Windows.CloseHandle(handle); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/Input/HARDWAREINPUT.cs b/OpenTabletDriver.Native/Windows/Input/HARDWAREINPUT.cs index 02b9abb8e..209f032f9 100644 --- a/OpenTabletDriver.Native/Windows/Input/HARDWAREINPUT.cs +++ b/OpenTabletDriver.Native/Windows/Input/HARDWAREINPUT.cs @@ -9,4 +9,4 @@ public struct HARDWAREINPUT public short wParamL; public short wParamH; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/Input/INPUT.cs b/OpenTabletDriver.Native/Windows/Input/INPUT.cs index 2e6042b46..dd9e20180 100644 --- a/OpenTabletDriver.Native/Windows/Input/INPUT.cs +++ b/OpenTabletDriver.Native/Windows/Input/INPUT.cs @@ -16,4 +16,4 @@ public enum INPUT_TYPE KEYBD_INPUT, HARDWARE_INPUT } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/Input/InputUnion.cs b/OpenTabletDriver.Native/Windows/Input/InputUnion.cs index 039ac8b63..74f1fafdf 100644 --- a/OpenTabletDriver.Native/Windows/Input/InputUnion.cs +++ b/OpenTabletDriver.Native/Windows/Input/InputUnion.cs @@ -12,4 +12,4 @@ public struct InputUnion [FieldOffset(0)] public HARDWAREINPUT hi; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/Input/KEYBDINPUT.cs b/OpenTabletDriver.Native/Windows/Input/KEYBDINPUT.cs index d6e099b2f..a567690c6 100644 --- a/OpenTabletDriver.Native/Windows/Input/KEYBDINPUT.cs +++ b/OpenTabletDriver.Native/Windows/Input/KEYBDINPUT.cs @@ -4,9 +4,9 @@ namespace OpenTabletDriver.Native.Windows.Input { using Int16 = Int16; + using ScanCodeShort = Int16; using UInt32 = UInt32; using VirtualKeyShort = Int16; - using ScanCodeShort = Int16; [StructLayout(LayoutKind.Sequential)] public struct KEYBDINPUT @@ -17,4 +17,4 @@ public struct KEYBDINPUT public int time; public UIntPtr dwExtraInfo; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/Input/KEYEVENTF.cs b/OpenTabletDriver.Native/Windows/Input/KEYEVENTF.cs index 717055bd9..80e46b7cc 100644 --- a/OpenTabletDriver.Native/Windows/Input/KEYEVENTF.cs +++ b/OpenTabletDriver.Native/Windows/Input/KEYEVENTF.cs @@ -8,4 +8,4 @@ public enum KEYEVENTF : short UNICODE = 0x0004, SCANCODE = 0x0008 } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/Input/KEYSTATE.cs b/OpenTabletDriver.Native/Windows/Input/KEYSTATE.cs index 8de1b4d53..1dc3c6c47 100644 --- a/OpenTabletDriver.Native/Windows/Input/KEYSTATE.cs +++ b/OpenTabletDriver.Native/Windows/Input/KEYSTATE.cs @@ -5,4 +5,4 @@ public enum KEYSTATE : int KEY_TOGGLED = 0x1, KEY_PRESSED = 0x8000 } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/Input/MOUSEEVENTF.cs b/OpenTabletDriver.Native/Windows/Input/MOUSEEVENTF.cs index 163ee8fe3..344d20efb 100644 --- a/OpenTabletDriver.Native/Windows/Input/MOUSEEVENTF.cs +++ b/OpenTabletDriver.Native/Windows/Input/MOUSEEVENTF.cs @@ -15,4 +15,4 @@ public enum MOUSEEVENTF : uint XUP = 0x0100, MOVE_NOCOALESCE = 0x2000 } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/Input/MOUSEINPUT.cs b/OpenTabletDriver.Native/Windows/Input/MOUSEINPUT.cs index 7656edf1e..a0c974ec0 100644 --- a/OpenTabletDriver.Native/Windows/Input/MOUSEINPUT.cs +++ b/OpenTabletDriver.Native/Windows/Input/MOUSEINPUT.cs @@ -13,4 +13,4 @@ public struct MOUSEINPUT public uint time; public UIntPtr dwExtraInfo; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/Input/VK.cs b/OpenTabletDriver.Native/Windows/Input/VK.cs index 1c031de82..c78874aba 100644 --- a/OpenTabletDriver.Native/Windows/Input/VK.cs +++ b/OpenTabletDriver.Native/Windows/Input/VK.cs @@ -176,4 +176,4 @@ public enum VirtualKey : short VK_PA1 = 0xFD, VK_OEM_NEC_EQUAL = 0x92 } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/Input/VirtualKeyStates.cs b/OpenTabletDriver.Native/Windows/Input/VirtualKeyStates.cs index 726703a2e..39c0b35cf 100644 --- a/OpenTabletDriver.Native/Windows/Input/VirtualKeyStates.cs +++ b/OpenTabletDriver.Native/Windows/Input/VirtualKeyStates.cs @@ -8,4 +8,4 @@ public enum VirtualKeyStates : int VK_XBUTTON1 = 0x05, VK_XBUTTON2 = 0x06, } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/Input/XBUTTON.cs b/OpenTabletDriver.Native/Windows/Input/XBUTTON.cs index eb73d2002..fa1c34768 100644 --- a/OpenTabletDriver.Native/Windows/Input/XBUTTON.cs +++ b/OpenTabletDriver.Native/Windows/Input/XBUTTON.cs @@ -6,4 +6,4 @@ public enum XBUTTON : uint XBUTTON1 = 0x0001, XBUTTON2 = 0x0002 } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/SetupApi.cs b/OpenTabletDriver.Native/Windows/SetupApi.cs index 9ea220fc0..7bf21f9e0 100644 --- a/OpenTabletDriver.Native/Windows/SetupApi.cs +++ b/OpenTabletDriver.Native/Windows/SetupApi.cs @@ -27,4 +27,4 @@ public static partial class SetupAPI [DllImport("setupapi.dll", CharSet = CharSet.Unicode, SetLastError = true)] public static extern bool SetupDiDestroyDeviceInfoList(IntPtr deviceInfoSet); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/SetupApiStructs/SP_DEVICE_INTERFACE_DATA.cs b/OpenTabletDriver.Native/Windows/SetupApiStructs/SP_DEVICE_INTERFACE_DATA.cs index c60cfd2e7..c9d994ae4 100644 --- a/OpenTabletDriver.Native/Windows/SetupApiStructs/SP_DEVICE_INTERFACE_DATA.cs +++ b/OpenTabletDriver.Native/Windows/SetupApiStructs/SP_DEVICE_INTERFACE_DATA.cs @@ -16,4 +16,4 @@ public static SP_DEVICE_INTERFACE_DATA Create() return new SP_DEVICE_INTERFACE_DATA { cbSize = Marshal.SizeOf(typeof(SP_DEVICE_INTERFACE_DATA)) }; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/SetupApiStructs/SP_DEVICE_INTERFACE_DETAIL_DATA.cs b/OpenTabletDriver.Native/Windows/SetupApiStructs/SP_DEVICE_INTERFACE_DETAIL_DATA.cs index 0c4d81631..2497bf11b 100644 --- a/OpenTabletDriver.Native/Windows/SetupApiStructs/SP_DEVICE_INTERFACE_DETAIL_DATA.cs +++ b/OpenTabletDriver.Native/Windows/SetupApiStructs/SP_DEVICE_INTERFACE_DETAIL_DATA.cs @@ -15,4 +15,4 @@ public static SP_DEVICE_INTERFACE_DETAIL_DATA Create() return new SP_DEVICE_INTERFACE_DETAIL_DATA { cbSize = IntPtr.Size == 8 ? 8 : 6 }; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/Timers/EventType.cs b/OpenTabletDriver.Native/Windows/Timers/EventType.cs index 169f23cc9..28b44c19e 100644 --- a/OpenTabletDriver.Native/Windows/Timers/EventType.cs +++ b/OpenTabletDriver.Native/Windows/Timers/EventType.cs @@ -9,4 +9,4 @@ public enum EventType : uint TIME_PERIODIC = 1, // Event occurs every after uDelay milliseconds. TIME_KILL_SYNCHRONOUS = 0x100 // Immediately stop timer when requested. } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/Timers/TimeCaps.cs b/OpenTabletDriver.Native/Windows/Timers/TimeCaps.cs index 3045f4080..a2db12ccb 100644 --- a/OpenTabletDriver.Native/Windows/Timers/TimeCaps.cs +++ b/OpenTabletDriver.Native/Windows/Timers/TimeCaps.cs @@ -8,4 +8,4 @@ public struct TimeCaps public uint wPeriodMin; public uint wPeriodMax; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/USB/DIGCF.cs b/OpenTabletDriver.Native/Windows/USB/DIGCF.cs index 58ce467a0..0a88aa8fc 100644 --- a/OpenTabletDriver.Native/Windows/USB/DIGCF.cs +++ b/OpenTabletDriver.Native/Windows/USB/DIGCF.cs @@ -12,4 +12,4 @@ public enum DIGCF Profile = 8, DeviceInterface = 16 } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/USB/DescriptorHeader.cs b/OpenTabletDriver.Native/Windows/USB/DescriptorHeader.cs index 02eb641be..e72bd7391 100644 --- a/OpenTabletDriver.Native/Windows/USB/DescriptorHeader.cs +++ b/OpenTabletDriver.Native/Windows/USB/DescriptorHeader.cs @@ -8,4 +8,4 @@ public readonly struct DescriptorHeader public readonly byte bLength; public readonly DescriptorType bDescriptorType; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/USB/DescriptorType.cs b/OpenTabletDriver.Native/Windows/USB/DescriptorType.cs index 2057aff2d..d32f6916f 100644 --- a/OpenTabletDriver.Native/Windows/USB/DescriptorType.cs +++ b/OpenTabletDriver.Native/Windows/USB/DescriptorType.cs @@ -26,4 +26,4 @@ public static class DescriptorTypeExtensions public static ushort WithIndex(this DescriptorType descriptorType, int index) => (ushort)(((ushort)descriptorType << 8) | index); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/USB/DeviceDescriptor.cs b/OpenTabletDriver.Native/Windows/USB/DeviceDescriptor.cs index ad1bff79a..0b34d9fb4 100644 --- a/OpenTabletDriver.Native/Windows/USB/DeviceDescriptor.cs +++ b/OpenTabletDriver.Native/Windows/USB/DeviceDescriptor.cs @@ -31,4 +31,4 @@ public readonly struct DeviceDescriptor public readonly byte bNumConfigurations; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/USB/InterfaceDescriptor.cs b/OpenTabletDriver.Native/Windows/USB/InterfaceDescriptor.cs index d45e6ce4f..979346024 100644 --- a/OpenTabletDriver.Native/Windows/USB/InterfaceDescriptor.cs +++ b/OpenTabletDriver.Native/Windows/USB/InterfaceDescriptor.cs @@ -14,4 +14,4 @@ public readonly struct InterfaceDescriptor public readonly byte bInterfaceProtocol; public readonly byte iInterface; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/USB/PipeDirection.cs b/OpenTabletDriver.Native/Windows/USB/PipeDirection.cs index 99c00c8cc..44206d26c 100644 --- a/OpenTabletDriver.Native/Windows/USB/PipeDirection.cs +++ b/OpenTabletDriver.Native/Windows/USB/PipeDirection.cs @@ -5,4 +5,4 @@ public enum PipeDirection Out, In } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/USB/PipeInfo.cs b/OpenTabletDriver.Native/Windows/USB/PipeInfo.cs index 633a64a2c..3dfa79b30 100644 --- a/OpenTabletDriver.Native/Windows/USB/PipeInfo.cs +++ b/OpenTabletDriver.Native/Windows/USB/PipeInfo.cs @@ -12,4 +12,4 @@ public struct PipeInfo public ushort MaximumPacketSize => (ushort)(sizePacket1 | (sizePacket0 << 8)); public byte Interval; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/USB/PipeType.cs b/OpenTabletDriver.Native/Windows/USB/PipeType.cs index d791e7b6e..7c2425ddc 100644 --- a/OpenTabletDriver.Native/Windows/USB/PipeType.cs +++ b/OpenTabletDriver.Native/Windows/USB/PipeType.cs @@ -7,4 +7,4 @@ public enum PipeType : int Bulk, Interrupt } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/USB/RequestDirection.cs b/OpenTabletDriver.Native/Windows/USB/RequestDirection.cs index 53ad00003..609b76e5a 100644 --- a/OpenTabletDriver.Native/Windows/USB/RequestDirection.cs +++ b/OpenTabletDriver.Native/Windows/USB/RequestDirection.cs @@ -5,4 +5,4 @@ public enum RequestDirection : byte HostToDevice, DeviceToHost } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/USB/RequestInternalType.cs b/OpenTabletDriver.Native/Windows/USB/RequestInternalType.cs index a61094d29..4ae2b1bf5 100644 --- a/OpenTabletDriver.Native/Windows/USB/RequestInternalType.cs +++ b/OpenTabletDriver.Native/Windows/USB/RequestInternalType.cs @@ -6,4 +6,4 @@ public enum RequestInternalType : byte Class, Vendor } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/USB/RequestRecipient.cs b/OpenTabletDriver.Native/Windows/USB/RequestRecipient.cs index c358a2957..984913434 100644 --- a/OpenTabletDriver.Native/Windows/USB/RequestRecipient.cs +++ b/OpenTabletDriver.Native/Windows/USB/RequestRecipient.cs @@ -8,4 +8,4 @@ public enum RequestRecipient : byte Other, VendorDefined = 0b0001_1111 } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/USB/RequestType.cs b/OpenTabletDriver.Native/Windows/USB/RequestType.cs index f4f6d3d0f..8ceac44b5 100644 --- a/OpenTabletDriver.Native/Windows/USB/RequestType.cs +++ b/OpenTabletDriver.Native/Windows/USB/RequestType.cs @@ -45,4 +45,4 @@ public RequestRecipient Recipient } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/USB/SafeWinUsbInterfaceHandle.cs b/OpenTabletDriver.Native/Windows/USB/SafeWinUsbInterfaceHandle.cs index e9d5f8a4c..84516df3b 100644 --- a/OpenTabletDriver.Native/Windows/USB/SafeWinUsbInterfaceHandle.cs +++ b/OpenTabletDriver.Native/Windows/USB/SafeWinUsbInterfaceHandle.cs @@ -15,4 +15,4 @@ protected override bool ReleaseHandle() return true; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/USB/SetupPacket.cs b/OpenTabletDriver.Native/Windows/USB/SetupPacket.cs index cb67d826d..13cc73bf6 100644 --- a/OpenTabletDriver.Native/Windows/USB/SetupPacket.cs +++ b/OpenTabletDriver.Native/Windows/USB/SetupPacket.cs @@ -54,4 +54,4 @@ public static SetupPacket MakeGetStringDescriptor(ushort index, ushort langId = langId); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/USB/StandardRequestCode.cs b/OpenTabletDriver.Native/Windows/USB/StandardRequestCode.cs index 97d5a434a..826e8aca1 100644 --- a/OpenTabletDriver.Native/Windows/USB/StandardRequestCode.cs +++ b/OpenTabletDriver.Native/Windows/USB/StandardRequestCode.cs @@ -27,4 +27,4 @@ public enum StandardRequestCode : byte SetSel = 48, SetIsochDelay } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/USB/StringDescriptor.cs b/OpenTabletDriver.Native/Windows/USB/StringDescriptor.cs index 9c70cad04..6c244a314 100644 --- a/OpenTabletDriver.Native/Windows/USB/StringDescriptor.cs +++ b/OpenTabletDriver.Native/Windows/USB/StringDescriptor.cs @@ -33,4 +33,4 @@ public unsafe static byte[] GetRaw(StringDescriptor* descriptor) return new ReadOnlySpan(descriptor, descriptor->bLength).ToArray(); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/WinUSB.cs b/OpenTabletDriver.Native/Windows/WinUSB.cs index b5547f1cb..1892e5a69 100644 --- a/OpenTabletDriver.Native/Windows/WinUSB.cs +++ b/OpenTabletDriver.Native/Windows/WinUSB.cs @@ -29,4 +29,4 @@ public static class WinUsb [DllImport("winusb.dll", SetLastError = true)] public static extern bool WinUsb_QueryPipe(SafeWinUsbInterfaceHandle interfaceHandle, byte altInterfaceNum, byte pipeIndex, out PipeInfo pipeInfo); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Native/Windows/Windows.cs b/OpenTabletDriver.Native/Windows/Windows.cs index 6f86ed851..e668efed1 100644 --- a/OpenTabletDriver.Native/Windows/Windows.cs +++ b/OpenTabletDriver.Native/Windows/Windows.cs @@ -72,4 +72,4 @@ public static extern SafeFileHandle CreateFile( [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] public static extern bool CloseHandle(IntPtr hHandle); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Area.cs b/OpenTabletDriver.Plugin/Area.cs index 44d951389..0bb31fab4 100644 --- a/OpenTabletDriver.Plugin/Area.cs +++ b/OpenTabletDriver.Plugin/Area.cs @@ -41,4 +41,4 @@ public Area(float width, float height, Vector2 position, float rotation) public override string ToString() => $"[{Width}x{Height}@{Position}:{Rotation}°],"; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Attributes/ActionAttribute.cs b/OpenTabletDriver.Plugin/Attributes/ActionAttribute.cs index fe77c5b8a..782aeccc0 100644 --- a/OpenTabletDriver.Plugin/Attributes/ActionAttribute.cs +++ b/OpenTabletDriver.Plugin/Attributes/ActionAttribute.cs @@ -17,4 +17,4 @@ public ActionAttribute(string groupName, string displayText) public string GroupName { set; get; } public string DisplayText { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Attributes/BooleanPropertyAttribute.cs b/OpenTabletDriver.Plugin/Attributes/BooleanPropertyAttribute.cs index 6fd2c4138..206981b4c 100644 --- a/OpenTabletDriver.Plugin/Attributes/BooleanPropertyAttribute.cs +++ b/OpenTabletDriver.Plugin/Attributes/BooleanPropertyAttribute.cs @@ -15,4 +15,4 @@ public BooleanPropertyAttribute(string displayName, string description) : base(d public string Description { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Attributes/BuildDateAttribute.cs b/OpenTabletDriver.Plugin/Attributes/BuildDateAttribute.cs index 5b490e1fa..b2c75344a 100644 --- a/OpenTabletDriver.Plugin/Attributes/BuildDateAttribute.cs +++ b/OpenTabletDriver.Plugin/Attributes/BuildDateAttribute.cs @@ -11,4 +11,4 @@ public BuildDateAttribute(string buildDate) BuildDate = buildDate; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Attributes/DefaultPropertyValueAttribute.cs b/OpenTabletDriver.Plugin/Attributes/DefaultPropertyValueAttribute.cs index 90a632da5..ce8b089fb 100644 --- a/OpenTabletDriver.Plugin/Attributes/DefaultPropertyValueAttribute.cs +++ b/OpenTabletDriver.Plugin/Attributes/DefaultPropertyValueAttribute.cs @@ -15,4 +15,4 @@ public DefaultPropertyValueAttribute(object value) public object Value { get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Attributes/DeviceHubAttribute.cs b/OpenTabletDriver.Plugin/Attributes/DeviceHubAttribute.cs index 2d1c9d699..6815dcca2 100644 --- a/OpenTabletDriver.Plugin/Attributes/DeviceHubAttribute.cs +++ b/OpenTabletDriver.Plugin/Attributes/DeviceHubAttribute.cs @@ -6,4 +6,4 @@ namespace OpenTabletDriver.Plugin.Attributes public class DeviceHubAttribute : Attribute { } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Attributes/ModifierAttribute.cs b/OpenTabletDriver.Plugin/Attributes/ModifierAttribute.cs index 262b2ec19..fc2888746 100644 --- a/OpenTabletDriver.Plugin/Attributes/ModifierAttribute.cs +++ b/OpenTabletDriver.Plugin/Attributes/ModifierAttribute.cs @@ -8,4 +8,4 @@ namespace OpenTabletDriver.Plugin.Attributes public abstract class ModifierAttribute : Attribute { } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Attributes/PluginIgnoreAttribute.cs b/OpenTabletDriver.Plugin/Attributes/PluginIgnoreAttribute.cs index 6c3baaa36..2731d33de 100644 --- a/OpenTabletDriver.Plugin/Attributes/PluginIgnoreAttribute.cs +++ b/OpenTabletDriver.Plugin/Attributes/PluginIgnoreAttribute.cs @@ -9,4 +9,4 @@ namespace OpenTabletDriver.Plugin.Attributes public class PluginIgnoreAttribute : Attribute { } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Attributes/PluginNameAttribute.cs b/OpenTabletDriver.Plugin/Attributes/PluginNameAttribute.cs index 73db36be9..bb65dc84e 100644 --- a/OpenTabletDriver.Plugin/Attributes/PluginNameAttribute.cs +++ b/OpenTabletDriver.Plugin/Attributes/PluginNameAttribute.cs @@ -15,4 +15,4 @@ public PluginNameAttribute(string name) public readonly string Name; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Attributes/PropertyAttribute.cs b/OpenTabletDriver.Plugin/Attributes/PropertyAttribute.cs index 01f60b5b0..59fb0f2eb 100644 --- a/OpenTabletDriver.Plugin/Attributes/PropertyAttribute.cs +++ b/OpenTabletDriver.Plugin/Attributes/PropertyAttribute.cs @@ -15,4 +15,4 @@ public PropertyAttribute(string displayName) public string DisplayName { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Attributes/PropertyValidatedAttribute.cs b/OpenTabletDriver.Plugin/Attributes/PropertyValidatedAttribute.cs index 5a2e89a6b..83d04e2a3 100644 --- a/OpenTabletDriver.Plugin/Attributes/PropertyValidatedAttribute.cs +++ b/OpenTabletDriver.Plugin/Attributes/PropertyValidatedAttribute.cs @@ -54,4 +54,4 @@ public T GetValue(PropertyInfo property) return default; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Attributes/SliderPropertyAttribute.cs b/OpenTabletDriver.Plugin/Attributes/SliderPropertyAttribute.cs index 50144f314..6466b96ab 100644 --- a/OpenTabletDriver.Plugin/Attributes/SliderPropertyAttribute.cs +++ b/OpenTabletDriver.Plugin/Attributes/SliderPropertyAttribute.cs @@ -19,4 +19,4 @@ public SliderPropertyAttribute(string displayName, float min, float max, float d public float Max { set; get; } public float DefaultValue { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Attributes/SupportedPlatformAttribute.cs b/OpenTabletDriver.Plugin/Attributes/SupportedPlatformAttribute.cs index ee9a60858..6d8a68e94 100644 --- a/OpenTabletDriver.Plugin/Attributes/SupportedPlatformAttribute.cs +++ b/OpenTabletDriver.Plugin/Attributes/SupportedPlatformAttribute.cs @@ -16,7 +16,7 @@ public SupportedPlatformAttribute(PluginPlatform platform) public PluginPlatform Platform { get; } - public bool IsCurrentPlatform => + public bool IsCurrentPlatform => (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && Platform.HasFlag(PluginPlatform.Windows)) || (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && Platform.HasFlag(PluginPlatform.Linux)) || (RuntimeInformation.IsOSPlatform(OSPlatform.OSX) && Platform.HasFlag(PluginPlatform.MacOS)) || diff --git a/OpenTabletDriver.Plugin/Attributes/TabletReferenceAttribute.cs b/OpenTabletDriver.Plugin/Attributes/TabletReferenceAttribute.cs index 9a4b02079..b239b34c9 100644 --- a/OpenTabletDriver.Plugin/Attributes/TabletReferenceAttribute.cs +++ b/OpenTabletDriver.Plugin/Attributes/TabletReferenceAttribute.cs @@ -6,4 +6,4 @@ namespace OpenTabletDriver.Plugin.Attributes public class TabletReferenceAttribute : Attribute { } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Attributes/ToolTipAttribute.cs b/OpenTabletDriver.Plugin/Attributes/ToolTipAttribute.cs index feb280866..540612ce8 100644 --- a/OpenTabletDriver.Plugin/Attributes/ToolTipAttribute.cs +++ b/OpenTabletDriver.Plugin/Attributes/ToolTipAttribute.cs @@ -14,4 +14,4 @@ public ToolTipAttribute(string tooltip) public string ToolTip { private set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Attributes/UnitAttribute.cs b/OpenTabletDriver.Plugin/Attributes/UnitAttribute.cs index c87de93ac..6cbc438ee 100644 --- a/OpenTabletDriver.Plugin/Attributes/UnitAttribute.cs +++ b/OpenTabletDriver.Plugin/Attributes/UnitAttribute.cs @@ -9,7 +9,7 @@ public UnitAttribute(string unit) { this.Unit = unit; } - + public string Unit { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Components/ICompositeDeviceHub.cs b/OpenTabletDriver.Plugin/Components/ICompositeDeviceHub.cs index 00cff18c0..b7e3df4e5 100644 --- a/OpenTabletDriver.Plugin/Components/ICompositeDeviceHub.cs +++ b/OpenTabletDriver.Plugin/Components/ICompositeDeviceHub.cs @@ -11,4 +11,4 @@ public interface ICompositeDeviceHub : IDeviceHub void DisconnectDeviceHub() where T : IDeviceHub; void DisconnectDeviceHub(IDeviceHub instance); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Components/IDeviceConfigurationProvider.cs b/OpenTabletDriver.Plugin/Components/IDeviceConfigurationProvider.cs index 7f4170811..c5af19c98 100644 --- a/OpenTabletDriver.Plugin/Components/IDeviceConfigurationProvider.cs +++ b/OpenTabletDriver.Plugin/Components/IDeviceConfigurationProvider.cs @@ -7,4 +7,4 @@ public interface IDeviceConfigurationProvider { IEnumerable TabletConfigurations { get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Components/IDeviceHubsProvider.cs b/OpenTabletDriver.Plugin/Components/IDeviceHubsProvider.cs index db93684f8..fc06b0279 100644 --- a/OpenTabletDriver.Plugin/Components/IDeviceHubsProvider.cs +++ b/OpenTabletDriver.Plugin/Components/IDeviceHubsProvider.cs @@ -7,4 +7,4 @@ public interface IDeviceHubsProvider { IEnumerable DeviceHubs { get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Components/IReportParserProvider.cs b/OpenTabletDriver.Plugin/Components/IReportParserProvider.cs index 921513022..11eaed797 100644 --- a/OpenTabletDriver.Plugin/Components/IReportParserProvider.cs +++ b/OpenTabletDriver.Plugin/Components/IReportParserProvider.cs @@ -6,4 +6,4 @@ public interface IReportParserProvider { IReportParser GetReportParser(string reportParserName); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/DependencyInjection/OnDependencyLoadAttribute.cs b/OpenTabletDriver.Plugin/DependencyInjection/OnDependencyLoadAttribute.cs index d1c0f92fc..ce2780f2c 100644 --- a/OpenTabletDriver.Plugin/DependencyInjection/OnDependencyLoadAttribute.cs +++ b/OpenTabletDriver.Plugin/DependencyInjection/OnDependencyLoadAttribute.cs @@ -9,4 +9,4 @@ namespace OpenTabletDriver.Plugin.DependencyInjection public class OnDependencyLoadAttribute : Attribute { } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/DependencyInjection/ResolvedAttribute.cs b/OpenTabletDriver.Plugin/DependencyInjection/ResolvedAttribute.cs index bb5ac3d36..66cbcf515 100644 --- a/OpenTabletDriver.Plugin/DependencyInjection/ResolvedAttribute.cs +++ b/OpenTabletDriver.Plugin/DependencyInjection/ResolvedAttribute.cs @@ -10,4 +10,4 @@ namespace OpenTabletDriver.Plugin.DependencyInjection public class ResolvedAttribute : Attribute { } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Devices/DevicesChangedEventArgs.cs b/OpenTabletDriver.Plugin/Devices/DevicesChangedEventArgs.cs index f979407d6..431f75d3d 100644 --- a/OpenTabletDriver.Plugin/Devices/DevicesChangedEventArgs.cs +++ b/OpenTabletDriver.Plugin/Devices/DevicesChangedEventArgs.cs @@ -27,4 +27,4 @@ private class DeviceEndpointComparer : IEqualityComparer public int GetHashCode(IDeviceEndpoint obj) => obj?.DevicePath?.GetHashCode() ?? 0; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Devices/IDeviceEndpoint.cs b/OpenTabletDriver.Plugin/Devices/IDeviceEndpoint.cs index c86e577af..2cf908f16 100644 --- a/OpenTabletDriver.Plugin/Devices/IDeviceEndpoint.cs +++ b/OpenTabletDriver.Plugin/Devices/IDeviceEndpoint.cs @@ -20,7 +20,7 @@ public interface IDeviceEndpoint bool CanOpen { get; } IDeviceEndpointStream Open(); - + string GetDeviceString(byte index); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Devices/IDeviceEndpointStream.cs b/OpenTabletDriver.Plugin/Devices/IDeviceEndpointStream.cs index b534cb09a..7cd00a4c4 100644 --- a/OpenTabletDriver.Plugin/Devices/IDeviceEndpointStream.cs +++ b/OpenTabletDriver.Plugin/Devices/IDeviceEndpointStream.cs @@ -10,4 +10,4 @@ public interface IDeviceEndpointStream : IDisposable void GetFeature(byte[] buffer); void SetFeature(byte[] buffer); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Devices/IDeviceHub.cs b/OpenTabletDriver.Plugin/Devices/IDeviceHub.cs index d469e0435..e7c871c46 100644 --- a/OpenTabletDriver.Plugin/Devices/IDeviceHub.cs +++ b/OpenTabletDriver.Plugin/Devices/IDeviceHub.cs @@ -9,4 +9,4 @@ public interface IDeviceHub IEnumerable GetDevices(); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Devices/SerializedDeviceEndpoint.cs b/OpenTabletDriver.Plugin/Devices/SerializedDeviceEndpoint.cs index c10f7dcff..3dabe060a 100644 --- a/OpenTabletDriver.Plugin/Devices/SerializedDeviceEndpoint.cs +++ b/OpenTabletDriver.Plugin/Devices/SerializedDeviceEndpoint.cs @@ -43,4 +43,4 @@ public SerializedDeviceEndpoint(IDeviceEndpoint endpoint) public bool CanOpen { get; set; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/HPETDeltaStopwatch.cs b/OpenTabletDriver.Plugin/HPETDeltaStopwatch.cs index 4ac6c60a6..fe0c812bb 100644 --- a/OpenTabletDriver.Plugin/HPETDeltaStopwatch.cs +++ b/OpenTabletDriver.Plugin/HPETDeltaStopwatch.cs @@ -63,4 +63,4 @@ public TimeSpan Reset() protected TimeSpan end; protected bool isRunning; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/IBinding.cs b/OpenTabletDriver.Plugin/IBinding.cs index aa2146f50..f7f73e962 100644 --- a/OpenTabletDriver.Plugin/IBinding.cs +++ b/OpenTabletDriver.Plugin/IBinding.cs @@ -5,4 +5,4 @@ namespace OpenTabletDriver.Plugin public interface IBinding { } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/IStateBinding.cs b/OpenTabletDriver.Plugin/IStateBinding.cs index f8400442c..5aa979751 100644 --- a/OpenTabletDriver.Plugin/IStateBinding.cs +++ b/OpenTabletDriver.Plugin/IStateBinding.cs @@ -18,4 +18,4 @@ public interface IStateBinding : IBinding /// The report that triggered the release. void Release(TabletReference tablet, IDeviceReport report); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/ITimer.cs b/OpenTabletDriver.Plugin/ITimer.cs index fd2a4311e..a70739969 100644 --- a/OpenTabletDriver.Plugin/ITimer.cs +++ b/OpenTabletDriver.Plugin/ITimer.cs @@ -10,4 +10,4 @@ public interface ITimer : IDisposable float Interval { get; set; } event Action Elapsed; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/ITool.cs b/OpenTabletDriver.Plugin/ITool.cs index 5d7e30689..d84b27078 100644 --- a/OpenTabletDriver.Plugin/ITool.cs +++ b/OpenTabletDriver.Plugin/ITool.cs @@ -9,4 +9,4 @@ public interface ITool : IDisposable { bool Initialize(); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Log.cs b/OpenTabletDriver.Plugin/Log.cs index 95bf76e9e..4d1914507 100644 --- a/OpenTabletDriver.Plugin/Log.cs +++ b/OpenTabletDriver.Plugin/Log.cs @@ -90,4 +90,4 @@ public static void Exception(Exception ex) Write(message); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/LogLevel.cs b/OpenTabletDriver.Plugin/LogLevel.cs index d918e6f9b..66bf3df72 100644 --- a/OpenTabletDriver.Plugin/LogLevel.cs +++ b/OpenTabletDriver.Plugin/LogLevel.cs @@ -11,4 +11,4 @@ public enum LogLevel Error, Fatal } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Logging/LogMessage.cs b/OpenTabletDriver.Plugin/Logging/LogMessage.cs index aef43fd3a..036aa3aca 100644 --- a/OpenTabletDriver.Plugin/Logging/LogMessage.cs +++ b/OpenTabletDriver.Plugin/Logging/LogMessage.cs @@ -57,4 +57,4 @@ public override string ToString() ); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Output/AsyncPositionedPipelineElement.cs b/OpenTabletDriver.Plugin/Output/AsyncPositionedPipelineElement.cs index 6f79f68b8..12854d265 100644 --- a/OpenTabletDriver.Plugin/Output/AsyncPositionedPipelineElement.cs +++ b/OpenTabletDriver.Plugin/Output/AsyncPositionedPipelineElement.cs @@ -122,4 +122,4 @@ public void Dispose() ~AsyncPositionedPipelineElement() => Dispose(); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Output/IOutputMode.cs b/OpenTabletDriver.Plugin/Output/IOutputMode.cs index 753ad8767..53c05be21 100644 --- a/OpenTabletDriver.Plugin/Output/IOutputMode.cs +++ b/OpenTabletDriver.Plugin/Output/IOutputMode.cs @@ -22,7 +22,7 @@ public interface IOutputMode : IPipelineElement /// /// Matrix3x2 TransformationMatrix { get; } - + /// /// The current tablet assigned to this /// diff --git a/OpenTabletDriver.Plugin/Output/IPipelineElement.cs b/OpenTabletDriver.Plugin/Output/IPipelineElement.cs index ee893134d..f02c11664 100644 --- a/OpenTabletDriver.Plugin/Output/IPipelineElement.cs +++ b/OpenTabletDriver.Plugin/Output/IPipelineElement.cs @@ -14,4 +14,4 @@ public interface IPipelineElement /// event Action Emit; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Output/IPositionedPipelineElement.cs b/OpenTabletDriver.Plugin/Output/IPositionedPipelineElement.cs index 549b0d100..8c529790b 100644 --- a/OpenTabletDriver.Plugin/Output/IPositionedPipelineElement.cs +++ b/OpenTabletDriver.Plugin/Output/IPositionedPipelineElement.cs @@ -8,4 +8,4 @@ public interface IPositionedPipelineElement : IPipelineElement /// PipelinePosition Position { get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Output/OutputMode.cs b/OpenTabletDriver.Plugin/Output/OutputMode.cs index dc4b44088..573d6497e 100644 --- a/OpenTabletDriver.Plugin/Output/OutputMode.cs +++ b/OpenTabletDriver.Plugin/Output/OutputMode.cs @@ -137,4 +137,4 @@ private void DestroyInternalLinks() } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Output/PipelineManager.cs b/OpenTabletDriver.Plugin/Output/PipelineManager.cs index b69bf5822..7d36fae1b 100644 --- a/OpenTabletDriver.Plugin/Output/PipelineManager.cs +++ b/OpenTabletDriver.Plugin/Output/PipelineManager.cs @@ -107,4 +107,4 @@ protected IList> GroupElements(IList e.Position == position)?.ToArray() ?? Array.Empty>(); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Output/PipelinePosition.cs b/OpenTabletDriver.Plugin/Output/PipelinePosition.cs index 0fc7c53d7..3106b5f12 100644 --- a/OpenTabletDriver.Plugin/Output/PipelinePosition.cs +++ b/OpenTabletDriver.Plugin/Output/PipelinePosition.cs @@ -8,4 +8,4 @@ public enum PipelinePosition Raw = PreTransform, Pixels = PostTransform } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Platform/Display/IDisplay.cs b/OpenTabletDriver.Plugin/Platform/Display/IDisplay.cs index 8fec79848..f2ca8688d 100644 --- a/OpenTabletDriver.Plugin/Platform/Display/IDisplay.cs +++ b/OpenTabletDriver.Plugin/Platform/Display/IDisplay.cs @@ -9,4 +9,4 @@ public interface IDisplay float Height { get; } Vector2 Position { get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Platform/Display/IVirtualScreen.cs b/OpenTabletDriver.Plugin/Platform/Display/IVirtualScreen.cs index 41ad567f7..9dc7abbb4 100644 --- a/OpenTabletDriver.Plugin/Platform/Display/IVirtualScreen.cs +++ b/OpenTabletDriver.Plugin/Platform/Display/IVirtualScreen.cs @@ -6,4 +6,4 @@ public interface IVirtualScreen : IDisplay { IEnumerable Displays { get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Platform/Keyboard/IVirtualKeyboard.cs b/OpenTabletDriver.Plugin/Platform/Keyboard/IVirtualKeyboard.cs index d847788c9..c60203824 100644 --- a/OpenTabletDriver.Plugin/Platform/Keyboard/IVirtualKeyboard.cs +++ b/OpenTabletDriver.Plugin/Platform/Keyboard/IVirtualKeyboard.cs @@ -12,4 +12,4 @@ public interface IVirtualKeyboard IEnumerable SupportedKeys { get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Platform/Pointer/IProximityHandler.cs b/OpenTabletDriver.Plugin/Platform/Pointer/IProximityHandler.cs index 0e16a02a1..c21b3a480 100644 --- a/OpenTabletDriver.Plugin/Platform/Pointer/IProximityHandler.cs +++ b/OpenTabletDriver.Plugin/Platform/Pointer/IProximityHandler.cs @@ -4,4 +4,4 @@ public interface IProximityHandler { void SetProximity(bool proximity); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Platform/Pointer/ISynchronousPointer.cs b/OpenTabletDriver.Plugin/Platform/Pointer/ISynchronousPointer.cs index 451ed30c3..d4c35d5de 100644 --- a/OpenTabletDriver.Plugin/Platform/Pointer/ISynchronousPointer.cs +++ b/OpenTabletDriver.Plugin/Platform/Pointer/ISynchronousPointer.cs @@ -5,4 +5,4 @@ public interface ISynchronousPointer void Reset(); void Flush(); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Platform/Pointer/MouseButton.cs b/OpenTabletDriver.Plugin/Platform/Pointer/MouseButton.cs index 227cbb7dd..b15cf3e9d 100644 --- a/OpenTabletDriver.Plugin/Platform/Pointer/MouseButton.cs +++ b/OpenTabletDriver.Plugin/Platform/Pointer/MouseButton.cs @@ -9,4 +9,4 @@ public enum MouseButton Backward = 4, Forward = 5 } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Tablet/AuxReport.cs b/OpenTabletDriver.Plugin/Tablet/AuxReport.cs index c66e900f4..220c39488 100644 --- a/OpenTabletDriver.Plugin/Tablet/AuxReport.cs +++ b/OpenTabletDriver.Plugin/Tablet/AuxReport.cs @@ -19,4 +19,4 @@ public AuxReport(byte[] report) public byte[] Raw { set; get; } public bool[] AuxButtons { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Tablet/AuxReportParser.cs b/OpenTabletDriver.Plugin/Tablet/AuxReportParser.cs index 7ba7dd4f8..9ce347bb0 100644 --- a/OpenTabletDriver.Plugin/Tablet/AuxReportParser.cs +++ b/OpenTabletDriver.Plugin/Tablet/AuxReportParser.cs @@ -7,4 +7,4 @@ public IDeviceReport Parse(byte[] data) return new AuxReport(data); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Tablet/ButtonSpecifications.cs b/OpenTabletDriver.Plugin/Tablet/ButtonSpecifications.cs index ce12c2c1e..f9b2b7f56 100644 --- a/OpenTabletDriver.Plugin/Tablet/ButtonSpecifications.cs +++ b/OpenTabletDriver.Plugin/Tablet/ButtonSpecifications.cs @@ -7,4 +7,4 @@ public class ButtonSpecifications /// public uint ButtonCount { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Tablet/ByteExtensions.cs b/OpenTabletDriver.Plugin/Tablet/ByteExtensions.cs index 6d693e37b..973eb182a 100644 --- a/OpenTabletDriver.Plugin/Tablet/ByteExtensions.cs +++ b/OpenTabletDriver.Plugin/Tablet/ByteExtensions.cs @@ -7,4 +7,4 @@ public static bool IsBitSet(this byte a, int bit) return (a & (1 << bit)) != 0; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Tablet/DetectionRange.cs b/OpenTabletDriver.Plugin/Tablet/DetectionRange.cs index ff1073216..96e7648eb 100644 --- a/OpenTabletDriver.Plugin/Tablet/DetectionRange.cs +++ b/OpenTabletDriver.Plugin/Tablet/DetectionRange.cs @@ -24,7 +24,7 @@ public DetectionRange(uint? start, bool startInclusive, uint? end, bool endInclu public bool StartInclusive { set; get; } = false; public uint? End { set; get; } - public bool EndInclusive {set; get; } = false; + public bool EndInclusive { set; get; } = false; public const char LeftInclusiveOperator = '['; public const char LeftExclusiveOperator = '('; @@ -32,7 +32,7 @@ public DetectionRange(uint? start, bool startInclusive, uint? end, bool endInclu public const char RightExclusiveOperator = ')'; public bool IsInRange(float value) => - (Start.HasValue ? (StartInclusive ? value >= Start : value > Start) : true) & + (Start.HasValue ? (StartInclusive ? value >= Start : value > Start) : true) & (End.HasValue ? (EndInclusive ? value <= End : value < End) : true); public override string ToString() @@ -47,7 +47,7 @@ public static DetectionRange Parse(string str) { string left = tokens[0][1..^0]; char leftOp = tokens[0][0]; - + string right = tokens[1][0..^1]; char rightOp = tokens[1][^1]; @@ -67,4 +67,4 @@ public static DetectionRange Parse(string str) return new DetectionRange(); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Tablet/DeviceIdentifier.cs b/OpenTabletDriver.Plugin/Tablet/DeviceIdentifier.cs index a5af70315..3a331ddef 100644 --- a/OpenTabletDriver.Plugin/Tablet/DeviceIdentifier.cs +++ b/OpenTabletDriver.Plugin/Tablet/DeviceIdentifier.cs @@ -51,4 +51,4 @@ public class DeviceIdentifier /// public List InitializationStrings { set; get; } = new List(); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Tablet/DeviceReport.cs b/OpenTabletDriver.Plugin/Tablet/DeviceReport.cs index c916a0105..74809c4e1 100644 --- a/OpenTabletDriver.Plugin/Tablet/DeviceReport.cs +++ b/OpenTabletDriver.Plugin/Tablet/DeviceReport.cs @@ -9,4 +9,4 @@ public DeviceReport(byte[] report) public byte[] Raw { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Tablet/DeviceVendor.cs b/OpenTabletDriver.Plugin/Tablet/DeviceVendor.cs index 8b26eb566..b5bb21988 100644 --- a/OpenTabletDriver.Plugin/Tablet/DeviceVendor.cs +++ b/OpenTabletDriver.Plugin/Tablet/DeviceVendor.cs @@ -12,4 +12,4 @@ public enum DeviceVendor VEIKK = 0x2FEB, UC_Logic = 0x5543 } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Tablet/DigitizerSpecifications.cs b/OpenTabletDriver.Plugin/Tablet/DigitizerSpecifications.cs index 3be70ec1a..08e849cda 100644 --- a/OpenTabletDriver.Plugin/Tablet/DigitizerSpecifications.cs +++ b/OpenTabletDriver.Plugin/Tablet/DigitizerSpecifications.cs @@ -11,7 +11,7 @@ public class DigitizerSpecifications /// The height of the digitizer in millimeters. /// public float Height { set; get; } - + /// /// The maximum X coordinate for the digitizer. /// @@ -22,4 +22,4 @@ public class DigitizerSpecifications /// public float MaxY { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Tablet/IAbsolutePositionReport.cs b/OpenTabletDriver.Plugin/Tablet/IAbsolutePositionReport.cs index 5e276e976..f5b19b12d 100644 --- a/OpenTabletDriver.Plugin/Tablet/IAbsolutePositionReport.cs +++ b/OpenTabletDriver.Plugin/Tablet/IAbsolutePositionReport.cs @@ -6,4 +6,4 @@ public interface IAbsolutePositionReport : IDeviceReport { Vector2 Position { get; set; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Tablet/IAreaConverter.cs b/OpenTabletDriver.Plugin/Tablet/IAreaConverter.cs index e7d0ed614..df7db9a55 100644 --- a/OpenTabletDriver.Plugin/Tablet/IAreaConverter.cs +++ b/OpenTabletDriver.Plugin/Tablet/IAreaConverter.cs @@ -11,4 +11,4 @@ public interface IAreaConverter Area Convert(TabletReference tablet, double top, double left, double bottom, double right); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Tablet/IMouseReport.cs b/OpenTabletDriver.Plugin/Tablet/IMouseReport.cs index c454d2890..b744ee65d 100644 --- a/OpenTabletDriver.Plugin/Tablet/IMouseReport.cs +++ b/OpenTabletDriver.Plugin/Tablet/IMouseReport.cs @@ -7,4 +7,4 @@ public interface IMouseReport : IAbsolutePositionReport bool[] MouseButtons { set; get; } Vector2 Scroll { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Tablet/IReportParser.cs b/OpenTabletDriver.Plugin/Tablet/IReportParser.cs index 6fcc7e7e1..571cd3fd5 100644 --- a/OpenTabletDriver.Plugin/Tablet/IReportParser.cs +++ b/OpenTabletDriver.Plugin/Tablet/IReportParser.cs @@ -4,4 +4,4 @@ public interface IReportParser where T : IDeviceReport { T Parse(byte[] report); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Tablet/PassthroughReportParser.cs b/OpenTabletDriver.Plugin/Tablet/PassthroughReportParser.cs index 6755715cf..da9ae7295 100644 --- a/OpenTabletDriver.Plugin/Tablet/PassthroughReportParser.cs +++ b/OpenTabletDriver.Plugin/Tablet/PassthroughReportParser.cs @@ -7,4 +7,4 @@ public virtual IDeviceReport Parse(byte[] data) return new DeviceReport(data); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Tablet/PenSpecifications.cs b/OpenTabletDriver.Plugin/Tablet/PenSpecifications.cs index 6cf7d4141..6c50f1c26 100644 --- a/OpenTabletDriver.Plugin/Tablet/PenSpecifications.cs +++ b/OpenTabletDriver.Plugin/Tablet/PenSpecifications.cs @@ -12,4 +12,4 @@ public class PenSpecifications /// public ButtonSpecifications Buttons { set; get; } = new ButtonSpecifications(); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Tablet/TabletReport.cs b/OpenTabletDriver.Plugin/Tablet/TabletReport.cs index ce7258a86..7d1dcd77c 100644 --- a/OpenTabletDriver.Plugin/Tablet/TabletReport.cs +++ b/OpenTabletDriver.Plugin/Tablet/TabletReport.cs @@ -28,4 +28,4 @@ public TabletReport(byte[] report) public uint Pressure { set; get; } public bool[] PenButtons { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Tablet/TabletReportParser.cs b/OpenTabletDriver.Plugin/Tablet/TabletReportParser.cs index 16dcaeb59..ee9e11672 100644 --- a/OpenTabletDriver.Plugin/Tablet/TabletReportParser.cs +++ b/OpenTabletDriver.Plugin/Tablet/TabletReportParser.cs @@ -7,4 +7,4 @@ public virtual IDeviceReport Parse(byte[] data) return new TabletReport(data); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Tablet/TabletSpecifications.cs b/OpenTabletDriver.Plugin/Tablet/TabletSpecifications.cs index dae93f830..f65e44cca 100644 --- a/OpenTabletDriver.Plugin/Tablet/TabletSpecifications.cs +++ b/OpenTabletDriver.Plugin/Tablet/TabletSpecifications.cs @@ -27,4 +27,4 @@ public class TabletSpecifications /// public DigitizerSpecifications Touch { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Tablet/TiltTabletReport.cs b/OpenTabletDriver.Plugin/Tablet/TiltTabletReport.cs index 84a632083..3e59e3a77 100644 --- a/OpenTabletDriver.Plugin/Tablet/TiltTabletReport.cs +++ b/OpenTabletDriver.Plugin/Tablet/TiltTabletReport.cs @@ -35,4 +35,4 @@ internal TiltTabletReport(byte[] report) public uint Pressure { set; get; } public bool[] PenButtons { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Plugin/Tablet/TiltTabletReportParser.cs b/OpenTabletDriver.Plugin/Tablet/TiltTabletReportParser.cs index 2f1d5ae59..380c5057c 100644 --- a/OpenTabletDriver.Plugin/Tablet/TiltTabletReportParser.cs +++ b/OpenTabletDriver.Plugin/Tablet/TiltTabletReportParser.cs @@ -7,4 +7,4 @@ public virtual IDeviceReport Parse(byte[] data) return new TiltTabletReport(data); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Tests/ConfigurationTest.cs b/OpenTabletDriver.Tests/ConfigurationTest.cs index 9e81cbd7c..3c4795e38 100644 --- a/OpenTabletDriver.Tests/ConfigurationTest.cs +++ b/OpenTabletDriver.Tests/ConfigurationTest.cs @@ -42,4 +42,4 @@ public void Configurations_Have_ExistentParsers(string reportParserName) Assert.NotNull(reportParser); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Tests/PluginMetadataTest.cs b/OpenTabletDriver.Tests/PluginMetadataTest.cs index b66f290f4..b397816b5 100644 --- a/OpenTabletDriver.Tests/PluginMetadataTest.cs +++ b/OpenTabletDriver.Tests/PluginMetadataTest.cs @@ -34,4 +34,4 @@ public void PluginMetadata_DeclaresDriverSupport_Properly(Version supportedDrive Assert.Equal(expectedSupport, supportStatus); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Tests/ReportParserProviderTest.cs b/OpenTabletDriver.Tests/ReportParserProviderTest.cs index 33645ef9d..e13eab583 100644 --- a/OpenTabletDriver.Tests/ReportParserProviderTest.cs +++ b/OpenTabletDriver.Tests/ReportParserProviderTest.cs @@ -1,8 +1,8 @@ using System; using Microsoft.Extensions.DependencyInjection; +using OpenTabletDriver.Configurations.Parsers.XP_Pen; using OpenTabletDriver.Plugin.Components; using OpenTabletDriver.Plugin.Tablet; -using OpenTabletDriver.Configurations.Parsers.XP_Pen; using Xunit; namespace OpenTabletDriver.Tests @@ -30,4 +30,4 @@ public void ReportParserProvider_CanGet_ReportParsers(string reportParserName, T Assert.Equal(expectedReportParserType, reportParserType); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Tests/StrictServiceCollectionTest.cs b/OpenTabletDriver.Tests/StrictServiceCollectionTest.cs index 96c51a8c6..9fde6b965 100644 --- a/OpenTabletDriver.Tests/StrictServiceCollectionTest.cs +++ b/OpenTabletDriver.Tests/StrictServiceCollectionTest.cs @@ -30,4 +30,4 @@ public void RequiredServices_CanBeReplaced() Assert.Equal(stubReportParserProvider, retrievedReportParserProvider); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Tests/TimerTests.cs b/OpenTabletDriver.Tests/TimerTests.cs index 921ded6fa..a98288bf6 100644 --- a/OpenTabletDriver.Tests/TimerTests.cs +++ b/OpenTabletDriver.Tests/TimerTests.cs @@ -47,4 +47,4 @@ public void TimerAccuracy(float interval, float duration) Assert.True(withinTolerance); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Tests/UpdaterTests.cs b/OpenTabletDriver.Tests/UpdaterTests.cs index bea5dcba9..301c0df91 100644 --- a/OpenTabletDriver.Tests/UpdaterTests.cs +++ b/OpenTabletDriver.Tests/UpdaterTests.cs @@ -310,7 +310,7 @@ private static async Task VerifyFakeFilesAsync(string? rootDir, string? rollBack var directory = Path.Join(splits[..^1]); var file = splits[^1]; - var targetFile = Path.Join(rollBackDir, directory, file); + var targetFile = Path.Join(rollBackDir, directory, file); Assert.True(File.Exists(targetFile), $"{kv.Key} does not exist in rollback store"); var fileContent = await File.ReadAllBytesAsync(targetFile); @@ -326,4 +326,4 @@ private struct UpdaterEnvironment public string? RollBackDir; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Tools.udev/Comparers/IdentifierComparer.cs b/OpenTabletDriver.Tools.udev/Comparers/IdentifierComparer.cs index e6bbedad6..db6a198bb 100644 --- a/OpenTabletDriver.Tools.udev/Comparers/IdentifierComparer.cs +++ b/OpenTabletDriver.Tools.udev/Comparers/IdentifierComparer.cs @@ -16,4 +16,4 @@ public int GetHashCode([DisallowNull] DeviceIdentifier obj) return (obj.VendorID ^ obj.ProductID).GetHashCode(); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Tools.udev/Extensions.cs b/OpenTabletDriver.Tools.udev/Extensions.cs index dfc9f35ed..16aa130ad 100755 --- a/OpenTabletDriver.Tools.udev/Extensions.cs +++ b/OpenTabletDriver.Tools.udev/Extensions.cs @@ -4,4 +4,4 @@ internal static class Extensions { public static string ToHexFormat(this int value) => value.ToString("x2").PadLeft(4, '0'); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.Tools.udev/Program.cs b/OpenTabletDriver.Tools.udev/Program.cs index 91787b042..9937f5efd 100755 --- a/OpenTabletDriver.Tools.udev/Program.cs +++ b/OpenTabletDriver.Tools.udev/Program.cs @@ -30,13 +30,13 @@ static async Task WriteRules(DirectoryInfo directory, FileInfo output, bool verb output.Delete(); if (!output.Directory.Exists) output.Directory.Create(); - + var path = output.FullName.Replace(Directory.GetCurrentDirectory(), string.Empty); Console.WriteLine($"Writing all rules to '{path}'..."); using (var sw = output.AppendText()) { await sw.WriteLineAsync( - "# Dynamically generated with the OpenTabletDriver.udev tool. " + + "# Dynamically generated with the OpenTabletDriver.udev tool. " + "https://github.com/OpenTabletDriver/OpenTabletDriver" ); foreach (var rule in CreateRules(directory)) @@ -57,10 +57,10 @@ static IEnumerable CreateRules(DirectoryInfo directory) if (string.IsNullOrWhiteSpace(tablet.Name)) continue; yield return string.Format("# {0}", tablet.Name); - + foreach (var rule in RuleGenerator.CreateAccessRules(tablet, "hidraw", "0666")) yield return rule; - + foreach (var rule in RuleGenerator.CreateAccessRules(tablet, "usb", "0666")) yield return rule; diff --git a/OpenTabletDriver.Tools.udev/RuleGenerator.cs b/OpenTabletDriver.Tools.udev/RuleGenerator.cs index c6fc0fbe8..7f1b991b5 100755 --- a/OpenTabletDriver.Tools.udev/RuleGenerator.cs +++ b/OpenTabletDriver.Tools.udev/RuleGenerator.cs @@ -1,9 +1,9 @@ using System.Collections.Generic; using System.Linq; -using udev.NET.Rules; -using udev.NET.Rules.Names; using OpenTabletDriver.Plugin.Tablet; using OpenTabletDriver.Tools.udev.Comparers; +using udev.NET.Rules; +using udev.NET.Rules.Names; namespace OpenTabletDriver.Tools.udev { @@ -51,4 +51,4 @@ public static IEnumerable CreateOverrideRules(TabletConfiguration tablet) } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX.MacOS/Program.cs b/OpenTabletDriver.UX.MacOS/Program.cs index adadfd3ca..e9c658ca5 100644 --- a/OpenTabletDriver.UX.MacOS/Program.cs +++ b/OpenTabletDriver.UX.MacOS/Program.cs @@ -10,4 +10,4 @@ public static void Main(string[] args) App.Run(Eto.Platforms.Mac64, args); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX.Wpf/Program.cs b/OpenTabletDriver.UX.Wpf/Program.cs index 2e3ebe838..0ffbc2470 100644 --- a/OpenTabletDriver.UX.Wpf/Program.cs +++ b/OpenTabletDriver.UX.Wpf/Program.cs @@ -14,7 +14,7 @@ public static void Main(string[] args) if (principal.IsInRole(WindowsBuiltInRole.Administrator)) { _ = new Application(Eto.Platforms.Wpf); - MessageBox.Show("OpenTabletDriver should not be run with administrator privileges.\n" + + MessageBox.Show("OpenTabletDriver should not be run with administrator privileges.\n" + "Some features may not work as intended, such as Plugin Manager and Tablet Debugger.\n" + "If you did not manually set OpenTabletDriver to run with administrator privileges please enable UAC to resolve this.\n" + "If it isn't resolved after, you are using the Administrator named account which overrides UAC.", MessageBoxType.Warning); diff --git a/OpenTabletDriver.UX/Attributes/PageNameAttribute.cs b/OpenTabletDriver.UX/Attributes/PageNameAttribute.cs index ae3330ce9..17e37ded1 100644 --- a/OpenTabletDriver.UX/Attributes/PageNameAttribute.cs +++ b/OpenTabletDriver.UX/Attributes/PageNameAttribute.cs @@ -12,4 +12,4 @@ public PageNameAttribute(string name) public string Name { get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Bindings/AuxiliaryBindingEditor.cs b/OpenTabletDriver.UX/Controls/Bindings/AuxiliaryBindingEditor.cs index d2ec6e829..ac542c3b1 100644 --- a/OpenTabletDriver.UX/Controls/Bindings/AuxiliaryBindingEditor.cs +++ b/OpenTabletDriver.UX/Controls/Bindings/AuxiliaryBindingEditor.cs @@ -35,4 +35,4 @@ public AuxiliaryBindingEditor() private BindingDisplayList auxButtons; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Bindings/BindingEditor.cs b/OpenTabletDriver.UX/Controls/Bindings/BindingEditor.cs index 8f64bb554..f567fde99 100644 --- a/OpenTabletDriver.UX/Controls/Bindings/BindingEditor.cs +++ b/OpenTabletDriver.UX/Controls/Bindings/BindingEditor.cs @@ -5,7 +5,7 @@ namespace OpenTabletDriver.UX.Controls.Bindings { public abstract class BindingEditor : Panel - { + { public DirectBinding SettingsBinding => ProfileBinding.Child(b => b.BindingSettings); private Profile profile; @@ -18,11 +18,11 @@ public Profile Profile } get => this.profile; } - + public event EventHandler ProfileChanged; - + protected virtual void OnProfileChanged() => ProfileChanged?.Invoke(this, new EventArgs()); - + public BindableBinding ProfileBinding { get diff --git a/OpenTabletDriver.UX/Controls/Bindings/MouseBindingEditor.cs b/OpenTabletDriver.UX/Controls/Bindings/MouseBindingEditor.cs index 96afc1f0d..1d5d7c730 100644 --- a/OpenTabletDriver.UX/Controls/Bindings/MouseBindingEditor.cs +++ b/OpenTabletDriver.UX/Controls/Bindings/MouseBindingEditor.cs @@ -77,4 +77,4 @@ protected override string GetTextForIndex(int index) } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/ControlPanel.cs b/OpenTabletDriver.UX/Controls/ControlPanel.cs index b3b9f0978..132449d2f 100644 --- a/OpenTabletDriver.UX/Controls/ControlPanel.cs +++ b/OpenTabletDriver.UX/Controls/ControlPanel.cs @@ -151,4 +151,4 @@ public BindableBinding ProfileBinding } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/GeneratedControls.cs b/OpenTabletDriver.UX/Controls/GeneratedControls.cs index bb4a676b7..10b4ed9d8 100644 --- a/OpenTabletDriver.UX/Controls/GeneratedControls.cs +++ b/OpenTabletDriver.UX/Controls/GeneratedControls.cs @@ -107,7 +107,7 @@ private static Control GetControlForSetting(PropertyInfo property, DirectBinding // TODO: replace with slider when possible (https://github.com/picoe/Eto/issues/1772) tb.ToolTip = $"Minimum: {sliderAttr.Min}, Maximum: {sliderAttr.Max}"; tb.PlaceholderText = $"{sliderAttr.DefaultValue}"; - + if (!binding.DataValue.HasValue) binding.DataValue.SetValue(sliderAttr.DefaultValue); } @@ -175,4 +175,4 @@ private static DirectBinding Convert(this DirectBinding bin ); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Generic/Dictionary/DictionaryEditor.cs b/OpenTabletDriver.UX/Controls/Generic/Dictionary/DictionaryEditor.cs index cec15173f..1a61c906f 100644 --- a/OpenTabletDriver.UX/Controls/Generic/Dictionary/DictionaryEditor.cs +++ b/OpenTabletDriver.UX/Controls/Generic/Dictionary/DictionaryEditor.cs @@ -174,7 +174,7 @@ protected virtual void Add(TKey key, TValue value) { var pair = ItemSource.First(t => t.Key.Equals(key)); if (!(ItemSource is INotifyCollectionChanged)) - HandleCollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, pair)); + HandleCollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, pair)); } } @@ -187,7 +187,7 @@ protected virtual void Remove(TKey key) ItemSource = null; if (!(ItemSource is INotifyCollectionChanged)) - HandleCollectionChanged(this , new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, oldObj)); + HandleCollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, oldObj)); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Generic/Dictionary/StringDictionaryEditor.cs b/OpenTabletDriver.UX/Controls/Generic/Dictionary/StringDictionaryEditor.cs index 044b307a9..d54c4cd0a 100644 --- a/OpenTabletDriver.UX/Controls/Generic/Dictionary/StringDictionaryEditor.cs +++ b/OpenTabletDriver.UX/Controls/Generic/Dictionary/StringDictionaryEditor.cs @@ -30,4 +30,4 @@ protected override Control CreateControl(DirectBinding keyBinding, Direc protected override void AddNew() => Add(string.Empty, string.Empty); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Generic/DropDown.cs b/OpenTabletDriver.UX/Controls/Generic/DropDown.cs index 65f5aea4e..b3ae4e743 100644 --- a/OpenTabletDriver.UX/Controls/Generic/DropDown.cs +++ b/OpenTabletDriver.UX/Controls/Generic/DropDown.cs @@ -24,4 +24,4 @@ public BindableBinding, T> SelectedItemBinding } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Generic/GeneratedItemList.cs b/OpenTabletDriver.UX/Controls/Generic/GeneratedItemList.cs index 0b9fe21d6..bacb43105 100644 --- a/OpenTabletDriver.UX/Controls/Generic/GeneratedItemList.cs +++ b/OpenTabletDriver.UX/Controls/Generic/GeneratedItemList.cs @@ -107,4 +107,4 @@ protected virtual void Insert(int index) layout.Items.Insert(index, control); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Generic/Group.cs b/OpenTabletDriver.UX/Controls/Generic/Group.cs index 3db131937..97e228c81 100644 --- a/OpenTabletDriver.UX/Controls/Generic/Group.cs +++ b/OpenTabletDriver.UX/Controls/Generic/Group.cs @@ -52,7 +52,7 @@ public string Text public Orientation Orientation { set; get; } = DEFAULT_ORIENTATION; public bool ExpandContent { set; get; } = true; - public HorizontalAlignment TitleHorizontalAlignment { set; get; } = HorizontalAlignment.Left; + public HorizontalAlignment TitleHorizontalAlignment { set; get; } = HorizontalAlignment.Left; public VerticalAlignment TitleVerticalAlignment { set; get; } = VerticalAlignment.Center; protected void UpdateControlLayout() diff --git a/OpenTabletDriver.UX/Controls/Generic/InputBox.cs b/OpenTabletDriver.UX/Controls/Generic/InputBox.cs index be9c4d96a..50cd44d16 100644 --- a/OpenTabletDriver.UX/Controls/Generic/InputBox.cs +++ b/OpenTabletDriver.UX/Controls/Generic/InputBox.cs @@ -27,4 +27,4 @@ public InputBox( base.Text = name; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Generic/ListBox.cs b/OpenTabletDriver.UX/Controls/Generic/ListBox.cs index c28ad6882..a64c4bd80 100644 --- a/OpenTabletDriver.UX/Controls/Generic/ListBox.cs +++ b/OpenTabletDriver.UX/Controls/Generic/ListBox.cs @@ -19,4 +19,4 @@ public IList Source public DirectBinding SelectedItemBinding => SelectedValueBinding.Cast(); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Generic/ModifiableConstructableItemList.cs b/OpenTabletDriver.UX/Controls/Generic/ModifiableConstructableItemList.cs index c5002188b..de072bae2 100644 --- a/OpenTabletDriver.UX/Controls/Generic/ModifiableConstructableItemList.cs +++ b/OpenTabletDriver.UX/Controls/Generic/ModifiableConstructableItemList.cs @@ -4,4 +4,4 @@ namespace OpenTabletDriver.UX.Controls.Generic { protected override void AddNew() => base.Add(ItemSource.Count, new T()); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Generic/ModifiableItemList.cs b/OpenTabletDriver.UX/Controls/Generic/ModifiableItemList.cs index f4c363926..03170f91b 100644 --- a/OpenTabletDriver.UX/Controls/Generic/ModifiableItemList.cs +++ b/OpenTabletDriver.UX/Controls/Generic/ModifiableItemList.cs @@ -69,7 +69,7 @@ protected virtual void Remove(int index) ItemSource = null; if (!(ItemSource is INotifyCollectionChanged)) - HandleCollectionChanged(this , new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, oldObj, index)); + HandleCollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, oldObj, index)); } protected override Control CreateControlBase(int index, DirectBinding itemBinding) @@ -100,4 +100,4 @@ protected override Control CreateControlBase(int index, DirectBinding itemBin }; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Generic/PaddingSpacerItem.cs b/OpenTabletDriver.UX/Controls/Generic/PaddingSpacerItem.cs index de8319f35..80185fbd9 100644 --- a/OpenTabletDriver.UX/Controls/Generic/PaddingSpacerItem.cs +++ b/OpenTabletDriver.UX/Controls/Generic/PaddingSpacerItem.cs @@ -10,4 +10,4 @@ public PaddingSpacerItem() this.Expand = true; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Generic/Reflection/Extensions.cs b/OpenTabletDriver.UX/Controls/Generic/Reflection/Extensions.cs index b68c2bb2c..4eb5a192e 100644 --- a/OpenTabletDriver.UX/Controls/Generic/Reflection/Extensions.cs +++ b/OpenTabletDriver.UX/Controls/Generic/Reflection/Extensions.cs @@ -10,4 +10,4 @@ public static string GetFriendlyName(this TypeInfo type) return type.GetCustomAttribute()?.Name ?? type.FullName; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Generic/Reflection/TypeDropDown.cs b/OpenTabletDriver.UX/Controls/Generic/Reflection/TypeDropDown.cs index 07569a436..1e5ed9f88 100644 --- a/OpenTabletDriver.UX/Controls/Generic/Reflection/TypeDropDown.cs +++ b/OpenTabletDriver.UX/Controls/Generic/Reflection/TypeDropDown.cs @@ -43,8 +43,8 @@ public void Select(Func predicate) protected override IEnumerable CreateDefaultDataStore() { var query = from type in AppInfo.PluginManager.GetChildTypes() - orderby type.GetFriendlyName() - select type; + orderby type.GetFriendlyName() + select type; return query.ToList(); } @@ -53,4 +53,4 @@ private void HandleAssembliesChanged(object sender, EventArgs e) => Application. this.DataStore = CreateDefaultDataStore(); }); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Generic/Reflection/TypeListBox.cs b/OpenTabletDriver.UX/Controls/Generic/Reflection/TypeListBox.cs index 8f8d422fe..6f6ce141d 100644 --- a/OpenTabletDriver.UX/Controls/Generic/Reflection/TypeListBox.cs +++ b/OpenTabletDriver.UX/Controls/Generic/Reflection/TypeListBox.cs @@ -45,11 +45,11 @@ public void Select(Func predicate) protected override IEnumerable CreateDefaultDataStore() { var query = from type in AppInfo.PluginManager.GetChildTypes() - orderby type.GetFriendlyName() - select type; + orderby type.GetFriendlyName() + select type; return query.ToList(); } private void HandleAssembliesChanged(object sender, EventArgs e) => Application.Instance.AsyncInvoke(() => this.DataStore = CreateDefaultDataStore()); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Generic/StackedContent.cs b/OpenTabletDriver.UX/Controls/Generic/StackedContent.cs index c48824925..d76179383 100644 --- a/OpenTabletDriver.UX/Controls/Generic/StackedContent.cs +++ b/OpenTabletDriver.UX/Controls/Generic/StackedContent.cs @@ -33,4 +33,4 @@ public void Add(params string[] items) IEnumerator IEnumerable.GetEnumerator() => this.Controls.GetEnumerator(); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Generic/StylizedText.cs b/OpenTabletDriver.UX/Controls/Generic/StylizedText.cs index 4c9a520fd..788ef6077 100644 --- a/OpenTabletDriver.UX/Controls/Generic/StylizedText.cs +++ b/OpenTabletDriver.UX/Controls/Generic/StylizedText.cs @@ -36,4 +36,4 @@ public Font Font set => ((Label)Content).Font = value; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Generic/Text/DoubleNumberBox.cs b/OpenTabletDriver.UX/Controls/Generic/Text/DoubleNumberBox.cs index 04e65015f..da01ad853 100644 --- a/OpenTabletDriver.UX/Controls/Generic/Text/DoubleNumberBox.cs +++ b/OpenTabletDriver.UX/Controls/Generic/Text/DoubleNumberBox.cs @@ -1,6 +1,6 @@ +using System.Globalization; using Eto.Forms; using OpenTabletDriver.UX.Controls.Generic.Text.Providers; -using System.Globalization; namespace OpenTabletDriver.UX.Controls.Generic.Text { diff --git a/OpenTabletDriver.UX/Controls/Generic/Text/FloatNumberBox.cs b/OpenTabletDriver.UX/Controls/Generic/Text/FloatNumberBox.cs index 896b2e4c7..9d3bdff01 100644 --- a/OpenTabletDriver.UX/Controls/Generic/Text/FloatNumberBox.cs +++ b/OpenTabletDriver.UX/Controls/Generic/Text/FloatNumberBox.cs @@ -1,6 +1,6 @@ +using System.Globalization; using Eto.Forms; using OpenTabletDriver.UX.Controls.Generic.Text.Providers; -using System.Globalization; namespace OpenTabletDriver.UX.Controls.Generic.Text { diff --git a/OpenTabletDriver.UX/Controls/Generic/Text/HexByteArrayBox.cs b/OpenTabletDriver.UX/Controls/Generic/Text/HexByteArrayBox.cs index 6867adc9e..ab8af7fce 100644 --- a/OpenTabletDriver.UX/Controls/Generic/Text/HexByteArrayBox.cs +++ b/OpenTabletDriver.UX/Controls/Generic/Text/HexByteArrayBox.cs @@ -48,4 +48,4 @@ private byte[] ToByteArray(string hex) } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Generic/Text/HexNumberBox.cs b/OpenTabletDriver.UX/Controls/Generic/Text/HexNumberBox.cs index e56c33d88..bb8a2394a 100644 --- a/OpenTabletDriver.UX/Controls/Generic/Text/HexNumberBox.cs +++ b/OpenTabletDriver.UX/Controls/Generic/Text/HexNumberBox.cs @@ -23,4 +23,4 @@ public override int Value } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Generic/Text/IntegerNumberBox.cs b/OpenTabletDriver.UX/Controls/Generic/Text/IntegerNumberBox.cs index cef5d965d..bdaab3572 100644 --- a/OpenTabletDriver.UX/Controls/Generic/Text/IntegerNumberBox.cs +++ b/OpenTabletDriver.UX/Controls/Generic/Text/IntegerNumberBox.cs @@ -20,4 +20,4 @@ public override int Value } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Generic/Text/Providers/MaskedTextProvider.cs b/OpenTabletDriver.UX/Controls/Generic/Text/Providers/MaskedTextProvider.cs index 3ba17ac7f..bb86145d0 100644 --- a/OpenTabletDriver.UX/Controls/Generic/Text/Providers/MaskedTextProvider.cs +++ b/OpenTabletDriver.UX/Controls/Generic/Text/Providers/MaskedTextProvider.cs @@ -84,4 +84,4 @@ public bool Replace(char character, ref int position) protected abstract bool Allow(ref char character, ref int position); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Generic/Text/UnsignedIntegerNumberBox.cs b/OpenTabletDriver.UX/Controls/Generic/Text/UnsignedIntegerNumberBox.cs index 584f764f2..f61ed51aa 100644 --- a/OpenTabletDriver.UX/Controls/Generic/Text/UnsignedIntegerNumberBox.cs +++ b/OpenTabletDriver.UX/Controls/Generic/Text/UnsignedIntegerNumberBox.cs @@ -20,4 +20,4 @@ public override uint Value } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Generic/TextContent.cs b/OpenTabletDriver.UX/Controls/Generic/TextContent.cs index ed226ab58..a2d506381 100644 --- a/OpenTabletDriver.UX/Controls/Generic/TextContent.cs +++ b/OpenTabletDriver.UX/Controls/Generic/TextContent.cs @@ -15,7 +15,7 @@ public TextContent() public TextContent(params string[] lines) : this() { - foreach (var line in lines) + foreach (var line in lines) Add(line); } @@ -43,4 +43,4 @@ public static implicit operator TextContent(string[] lines) return new TextContent(lines); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/LogView.cs b/OpenTabletDriver.UX/Controls/LogView.cs index c4d5a62b5..1736b2bd2 100644 --- a/OpenTabletDriver.UX/Controls/LogView.cs +++ b/OpenTabletDriver.UX/Controls/LogView.cs @@ -163,7 +163,7 @@ private static void Copy(IEnumerable messages) } } - private class FilterDropDown : EnumDropDown + private class FilterDropDown : EnumDropDown { public FilterDropDown(LogLevel activeFilter = LogLevel.Info) { @@ -171,4 +171,4 @@ public FilterDropDown(LogLevel activeFilter = LogLevel.Info) } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Output/Area/AreaControl.cs b/OpenTabletDriver.UX/Controls/Output/Area/AreaControl.cs index 12430d749..3b729506e 100644 --- a/OpenTabletDriver.UX/Controls/Output/Area/AreaControl.cs +++ b/OpenTabletDriver.UX/Controls/Output/Area/AreaControl.cs @@ -198,4 +198,4 @@ public BindableBinding InvalidBackgroundErrorBinding } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Output/Area/AreaDisplay.cs b/OpenTabletDriver.UX/Controls/Output/Area/AreaDisplay.cs index 101c9016e..9313c6189 100644 --- a/OpenTabletDriver.UX/Controls/Output/Area/AreaDisplay.cs +++ b/OpenTabletDriver.UX/Controls/Output/Area/AreaDisplay.cs @@ -228,7 +228,7 @@ public BindableBinding InvalidBackgroundErrorBinding private readonly Color AreaBoundsBorderColor = SystemInterop.CurrentPlatform switch { PluginPlatform.Windows => new Color(64, 64, 64), - _ => SystemColors.Control + _ => SystemColors.Control }; private bool mouseDragging; diff --git a/OpenTabletDriver.UX/Controls/Output/Area/RotationAreaEditor.cs b/OpenTabletDriver.UX/Controls/Output/Area/RotationAreaEditor.cs index 6a3f0b69d..805c324fe 100644 --- a/OpenTabletDriver.UX/Controls/Output/Area/RotationAreaEditor.cs +++ b/OpenTabletDriver.UX/Controls/Output/Area/RotationAreaEditor.cs @@ -48,4 +48,4 @@ protected override void CreateMenu() ); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/Output/OutputModeEditor.cs b/OpenTabletDriver.UX/Controls/Output/OutputModeEditor.cs index 478141a1e..8bb622a3a 100644 --- a/OpenTabletDriver.UX/Controls/Output/OutputModeEditor.cs +++ b/OpenTabletDriver.UX/Controls/Output/OutputModeEditor.cs @@ -109,8 +109,8 @@ public void SetTabletSize(TabletReference tablet) public void SetDisplaySize(IEnumerable displays) { var bgs = from disp in displays - where !(disp is IVirtualScreen) - select new RectangleF(disp.Position.X, disp.Position.Y, disp.Width, disp.Height); + where !(disp is IVirtualScreen) + select new RectangleF(disp.Position.X, disp.Position.Y, disp.Width, disp.Height); absoluteModeEditor.displayAreaEditor.AreaBounds = bgs; } diff --git a/OpenTabletDriver.UX/Controls/Output/RelativeModeEditor.cs b/OpenTabletDriver.UX/Controls/Output/RelativeModeEditor.cs index 9a531c137..64d0d1ca5 100644 --- a/OpenTabletDriver.UX/Controls/Output/RelativeModeEditor.cs +++ b/OpenTabletDriver.UX/Controls/Output/RelativeModeEditor.cs @@ -77,11 +77,11 @@ public RelativeModeSettings Settings } get => this.settings; } - + public event EventHandler SettingsChanged; - + protected virtual void OnSettingsChanged() => SettingsChanged?.Invoke(this, new EventArgs()); - + public BindableBinding SettingsBinding { get diff --git a/OpenTabletDriver.UX/Controls/Placeholder.cs b/OpenTabletDriver.UX/Controls/Placeholder.cs index c682227c5..4c265423e 100644 --- a/OpenTabletDriver.UX/Controls/Placeholder.cs +++ b/OpenTabletDriver.UX/Controls/Placeholder.cs @@ -33,7 +33,7 @@ public Placeholder() private Label label; private Panel extraPanel; - + private string text; public string Text { @@ -44,11 +44,11 @@ public string Text } get => this.text; } - + public event EventHandler TextChanged; - + protected virtual void OnTextChanged() => TextChanged?.Invoke(this, new EventArgs()); - + public BindableBinding TextBinding { get @@ -74,4 +74,4 @@ public Control ExtraContent get => this.extraContent; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Controls/PluginSettingStoreCollectionEditor.cs b/OpenTabletDriver.UX/Controls/PluginSettingStoreCollectionEditor.cs index 5ce33c50d..1e760c9f7 100644 --- a/OpenTabletDriver.UX/Controls/PluginSettingStoreCollectionEditor.cs +++ b/OpenTabletDriver.UX/Controls/PluginSettingStoreCollectionEditor.cs @@ -102,7 +102,7 @@ protected override IEnumerable GetHeaderControlsForStore(PluginSettingS { var enableButton = new CheckBox { - Text = $"Enable {store.Name?? store.Path}", + Text = $"Enable {store.Name ?? store.Path}", Checked = store.Enable }; enableButton.CheckedChanged += (sender, e) => store.Enable = enableButton.Checked ?? false; diff --git a/OpenTabletDriver.UX/Controls/PluginSettingStoreEditor.cs b/OpenTabletDriver.UX/Controls/PluginSettingStoreEditor.cs index 711142b25..0973c801f 100644 --- a/OpenTabletDriver.UX/Controls/PluginSettingStoreEditor.cs +++ b/OpenTabletDriver.UX/Controls/PluginSettingStoreEditor.cs @@ -82,9 +82,9 @@ private IEnumerable GetControlsForStore(PluginSettingStore store) private IEnumerable GetControlsForType(PluginSettingStore store, Type type) { var properties = from property in type.GetProperties() - let attrs = property.GetCustomAttributes(true) - where attrs.Any(a => a is PropertyAttribute) - select property; + let attrs = property.GetCustomAttributes(true) + where attrs.Any(a => a is PropertyAttribute) + select property; foreach (var property in properties) yield return GeneratedControls.GetControlForProperty(store, property); diff --git a/OpenTabletDriver.UX/Controls/TabletSwitcherPanel.cs b/OpenTabletDriver.UX/Controls/TabletSwitcherPanel.cs index 330a8c580..41e3f54ef 100644 --- a/OpenTabletDriver.UX/Controls/TabletSwitcherPanel.cs +++ b/OpenTabletDriver.UX/Controls/TabletSwitcherPanel.cs @@ -124,8 +124,8 @@ public void HandleTabletsChanged(object sender, IList tablets) if (tablets.Any()) { var tabletsWithoutProfile = from tablet in tablets - where !profiles.Any(p => p.Tablet == tablet.Properties.Name) - select tablet; + where !profiles.Any(p => p.Tablet == tablet.Properties.Name) + select tablet; foreach (var tablet in tabletsWithoutProfile) profiles.Generate(tablet); @@ -147,4 +147,4 @@ public void HandleTabletsChanged(object sender, IList tablets) } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/DaemonWatchdog.cs b/OpenTabletDriver.UX/DaemonWatchdog.cs index 81a07020a..fe2c5bdd0 100644 --- a/OpenTabletDriver.UX/DaemonWatchdog.cs +++ b/OpenTabletDriver.UX/DaemonWatchdog.cs @@ -34,7 +34,7 @@ public class DaemonWatchdog : IDisposable }; public static bool CanExecute => - File.Exists(startInfo.FileName) || + File.Exists(startInfo.FileName) || File.Exists(startInfo.Arguments); public void Start() diff --git a/OpenTabletDriver.UX/Dialogs/RepositoryDialog.cs b/OpenTabletDriver.UX/Dialogs/RepositoryDialog.cs index a789429c3..e76b2b2fa 100644 --- a/OpenTabletDriver.UX/Dialogs/RepositoryDialog.cs +++ b/OpenTabletDriver.UX/Dialogs/RepositoryDialog.cs @@ -146,4 +146,4 @@ protected override void OnLoadComplete(EventArgs e) } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Extensions.cs b/OpenTabletDriver.UX/Extensions.cs index f57ba337b..36e12dc70 100644 --- a/OpenTabletDriver.UX/Extensions.cs +++ b/OpenTabletDriver.UX/Extensions.cs @@ -55,4 +55,4 @@ public static async Task GetTabletReference(this Profile profil return tablets.FirstOrDefault(t => t.Properties.Name == profile.Tablet); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/IViewModelRoot.cs b/OpenTabletDriver.UX/IViewModelRoot.cs index 4e41046ed..8b19c558a 100644 --- a/OpenTabletDriver.UX/IViewModelRoot.cs +++ b/OpenTabletDriver.UX/IViewModelRoot.cs @@ -6,4 +6,4 @@ public interface IViewModelRoot where T : INotifyPropertyChanged { T ViewModel { set; get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/MainForm.cs b/OpenTabletDriver.UX/MainForm.cs index 0d47c92b7..c3525af23 100644 --- a/OpenTabletDriver.UX/MainForm.cs +++ b/OpenTabletDriver.UX/MainForm.cs @@ -95,8 +95,8 @@ protected void InitializePlatform() bool enableDaemonWatchdog = DesktopInterop.CurrentPlatform switch { PluginPlatform.Windows => true, - PluginPlatform.MacOS => true, - _ => false, + PluginPlatform.MacOS => true, + _ => false, }; if (App.EnableTrayIcon) @@ -546,7 +546,7 @@ private async Task SavePresetDialog() var file = new FileInfo(fileDialog.FileName + (fileDialog.FileName.EndsWith(".json") ? "" : ".json")); if (App.Current.Settings is Settings settings) settings.Serialize(file); - await RefreshPresets(); + await RefreshPresets(); break; } } diff --git a/OpenTabletDriver.UX/RPC/DaemonRpcClient.cs b/OpenTabletDriver.UX/RPC/DaemonRpcClient.cs index b28937fed..a83ee3574 100644 --- a/OpenTabletDriver.UX/RPC/DaemonRpcClient.cs +++ b/OpenTabletDriver.UX/RPC/DaemonRpcClient.cs @@ -31,4 +31,4 @@ protected override void OnConnected() Application.Instance.AsyncInvoke(() => TabletsChanged?.Invoke(sender, e)); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Tools/CompositionScheduler.cs b/OpenTabletDriver.UX/Tools/CompositionScheduler.cs index bf05be0ae..9b3792691 100644 --- a/OpenTabletDriver.UX/Tools/CompositionScheduler.cs +++ b/OpenTabletDriver.UX/Tools/CompositionScheduler.cs @@ -38,7 +38,7 @@ private static void Start() if (!running) { running = true; - scheduler.Change(0, 1000 /MAX_FRAMES_PER_SEC); + scheduler.Change(0, 1000 / MAX_FRAMES_PER_SEC); } } @@ -59,4 +59,4 @@ private static void OnCompose() private static bool running; private static event EventHandler Compose; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Tools/EnumTools.cs b/OpenTabletDriver.UX/Tools/EnumTools.cs index c070a25ff..89493901d 100644 --- a/OpenTabletDriver.UX/Tools/EnumTools.cs +++ b/OpenTabletDriver.UX/Tools/EnumTools.cs @@ -20,4 +20,4 @@ public static T[] GetValues() where T : Enum return Enum.GetValues(typeof(T)).OfType().ToArray(); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Tools/LogDataStore.cs b/OpenTabletDriver.UX/Tools/LogDataStore.cs index c1e27eacd..a08026620 100644 --- a/OpenTabletDriver.UX/Tools/LogDataStore.cs +++ b/OpenTabletDriver.UX/Tools/LogDataStore.cs @@ -70,8 +70,8 @@ protected void OnCollectionChanged(NotifyCollectionChangedAction action, object private IEnumerable GetFilteredMessages() { return from message in this.messages - where message.Level >= Filter - select message; + where message.Level >= Filter + select message; } IEnumerator IEnumerable.GetEnumerator() @@ -126,4 +126,4 @@ LogMessage IList.this[int index] set => (filteredMessages as IList)[index] = value; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Tools/ParseTools.cs b/OpenTabletDriver.UX/Tools/ParseTools.cs index 31706a2e8..409e4959e 100644 --- a/OpenTabletDriver.UX/Tools/ParseTools.cs +++ b/OpenTabletDriver.UX/Tools/ParseTools.cs @@ -7,15 +7,15 @@ public static class ParseTools { public static float? ToNullableFloat(string str) => float.TryParse(str, out var val) ? val : (float?)null; public static float ToFloat(string str) => ToNullableFloat(str) ?? 0f; - + public static int? ToNullableInt(string str) => int.TryParse(str, out var val) ? val : (int?)null; public static int ToInt(string str) => ToNullableInt(str) ?? 0; - + public static uint? ToNullableUInt(string str) => uint.TryParse(str, out var val) ? val : (uint?)null; public static uint ToUInt(string str) => ToNullableUInt(str) ?? 0; public static bool TryGetHexValue(string str, out byte value) => byte.TryParse(str.Replace("0x", string.Empty), NumberStyles.HexNumber, null, out value); - + public static string ToHexString(byte[] value) { if (value is byte[] array) @@ -23,7 +23,7 @@ public static string ToHexString(byte[] value) else return string.Empty; } - + public static byte[] ToByteArray(string hex) { var raw = hex.Split(' '); @@ -38,4 +38,4 @@ public static byte[] ToByteArray(string hex) return buffer; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Windows/Configurations/ConfigurationEditor.cs b/OpenTabletDriver.UX/Windows/Configurations/ConfigurationEditor.cs index 740db0395..b6b96c409 100644 --- a/OpenTabletDriver.UX/Windows/Configurations/ConfigurationEditor.cs +++ b/OpenTabletDriver.UX/Windows/Configurations/ConfigurationEditor.cs @@ -98,8 +98,8 @@ public void Refresh() { var configDir = new DirectoryInfo(AppInfo.Current.ConfigurationDirectory); var sortedConfigs = from config in ReadConfigurations(configDir) - orderby config.Name - select config; + orderby config.Name + select config; Configurations = new ObservableCollection(sortedConfigs); SelectedIndex = 0; @@ -134,7 +134,7 @@ private ObservableCollection ReadConfigurations(DirectoryIn if (dir.Exists) { var configs = from file in dir.GetFiles("*.json", SearchOption.AllDirectories) - select Serialization.Deserialize(file); + select Serialization.Deserialize(file); return new ObservableCollection(configs); } else @@ -158,7 +158,7 @@ private void WriteConfigurations(IEnumerable configs, Direc if (!file.Directory.Exists) file.Directory.Create(); Serialization.Serialize(file, config); - } + } catch (UnauthorizedAccessException) { Log.Write("Configuration", $"OpenTabletDriver doesn't have permission to save persistent tablet config to {path}.", LogLevel.Error); @@ -338,11 +338,11 @@ public TabletConfiguration Configuration } get => this.configuration; } - + public event EventHandler ConfigurationChanged; - + protected virtual void OnConfigurationChanged() => ConfigurationChanged?.Invoke(this, new EventArgs()); - + public BindableBinding ConfigurationBinding { get diff --git a/OpenTabletDriver.UX/Windows/Configurations/Controls/DeviceIdentifierEditor.cs b/OpenTabletDriver.UX/Windows/Configurations/Controls/DeviceIdentifierEditor.cs index daf9352e4..e2420409d 100644 --- a/OpenTabletDriver.UX/Windows/Configurations/Controls/DeviceIdentifierEditor.cs +++ b/OpenTabletDriver.UX/Windows/Configurations/Controls/DeviceIdentifierEditor.cs @@ -227,4 +227,4 @@ protected override Control CreateControl(int index, DirectBinding itemBind } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Windows/Configurations/Controls/Specifications/ButtonSpecificationsEditor.cs b/OpenTabletDriver.UX/Windows/Configurations/Controls/Specifications/ButtonSpecificationsEditor.cs index e94850cc9..d9b338972 100644 --- a/OpenTabletDriver.UX/Windows/Configurations/Controls/Specifications/ButtonSpecificationsEditor.cs +++ b/OpenTabletDriver.UX/Windows/Configurations/Controls/Specifications/ButtonSpecificationsEditor.cs @@ -28,7 +28,7 @@ public ButtonSpecificationsEditor() Orientation = Orientation.Horizontal, Content = buttonCount = new UnsignedIntegerNumberBox() } - } + } }; enable.CheckedBinding.Cast().Bind( @@ -46,4 +46,4 @@ public ButtonSpecificationsEditor() private CheckBox enable; private MaskedTextBox buttonCount; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Windows/Configurations/Controls/Specifications/DigitizerSpecificationsEditor.cs b/OpenTabletDriver.UX/Windows/Configurations/Controls/Specifications/DigitizerSpecificationsEditor.cs index 5189d963c..f9b345817 100644 --- a/OpenTabletDriver.UX/Windows/Configurations/Controls/Specifications/DigitizerSpecificationsEditor.cs +++ b/OpenTabletDriver.UX/Windows/Configurations/Controls/Specifications/DigitizerSpecificationsEditor.cs @@ -15,7 +15,7 @@ public DigitizerSpecificationsEditor() HorizontalContentAlignment = HorizontalAlignment.Stretch, Spacing = 5, Padding = 5, - Items = + Items = { new StackLayoutItem { @@ -71,4 +71,4 @@ public DigitizerSpecificationsEditor() private CheckBox enable; private MaskedTextBox width, height, maxX, maxY; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Windows/Configurations/Controls/Specifications/PenSpecificationsEditor.cs b/OpenTabletDriver.UX/Windows/Configurations/Controls/Specifications/PenSpecificationsEditor.cs index aed246ef2..2622dcaa8 100644 --- a/OpenTabletDriver.UX/Windows/Configurations/Controls/Specifications/PenSpecificationsEditor.cs +++ b/OpenTabletDriver.UX/Windows/Configurations/Controls/Specifications/PenSpecificationsEditor.cs @@ -59,4 +59,4 @@ public PenSpecificationsEditor() private MaskedTextBox maxPressure; private UnsignedIntegerNumberBox buttonCount; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Windows/Configurations/Controls/Specifications/SpecificationsEditor.cs b/OpenTabletDriver.UX/Windows/Configurations/Controls/Specifications/SpecificationsEditor.cs index b9a504b5e..f73541082 100644 --- a/OpenTabletDriver.UX/Windows/Configurations/Controls/Specifications/SpecificationsEditor.cs +++ b/OpenTabletDriver.UX/Windows/Configurations/Controls/Specifications/SpecificationsEditor.cs @@ -15,11 +15,11 @@ public T Specifications } get => this.specification; } - + public event EventHandler SpecificationsChanged; - + protected virtual void OnSpecificationsChanged() => SpecificationsChanged?.Invoke(this, new EventArgs()); - + public BindableBinding, T> SpecificationsBinding { get @@ -34,4 +34,4 @@ public BindableBinding, T> SpecificationsBinding } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Windows/Configurations/Controls/Specifications/TabletSpecificationsEditor.cs b/OpenTabletDriver.UX/Windows/Configurations/Controls/Specifications/TabletSpecificationsEditor.cs index 5b18aaeda..0b156e8bd 100644 --- a/OpenTabletDriver.UX/Windows/Configurations/Controls/Specifications/TabletSpecificationsEditor.cs +++ b/OpenTabletDriver.UX/Windows/Configurations/Controls/Specifications/TabletSpecificationsEditor.cs @@ -58,4 +58,4 @@ public TabletSpecificationsEditor() private ButtonSpecificationsEditor auxButtons; private ButtonSpecificationsEditor mouseButtons; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Windows/DeviceListDialog.cs b/OpenTabletDriver.UX/Windows/DeviceListDialog.cs index 2cdc231dc..c1f8e6d29 100644 --- a/OpenTabletDriver.UX/Windows/DeviceListDialog.cs +++ b/OpenTabletDriver.UX/Windows/DeviceListDialog.cs @@ -136,4 +136,4 @@ public async Task InitializeAsync() private TextBox friendlyName, manufacturer, productName, serialNumber, devicePath; private MaskedTextBox vendorId, productId, inputReportLength, outputReportLength, featureReportLength; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Windows/Greeter/Pages/BindingPage.cs b/OpenTabletDriver.UX/Windows/Greeter/Pages/BindingPage.cs index 89f2d4d14..7c24b4eb4 100644 --- a/OpenTabletDriver.UX/Windows/Greeter/Pages/BindingPage.cs +++ b/OpenTabletDriver.UX/Windows/Greeter/Pages/BindingPage.cs @@ -33,7 +33,7 @@ public BindingPage() Content = new StackLayout { Orientation = Orientation.Horizontal, - Items = + Items = { new Panel { diff --git a/OpenTabletDriver.UX/Windows/Greeter/Pages/SystemTrayPage.cs b/OpenTabletDriver.UX/Windows/Greeter/Pages/SystemTrayPage.cs index 11aeeec29..6796437fc 100644 --- a/OpenTabletDriver.UX/Windows/Greeter/Pages/SystemTrayPage.cs +++ b/OpenTabletDriver.UX/Windows/Greeter/Pages/SystemTrayPage.cs @@ -20,4 +20,4 @@ public SystemTrayPage() }; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Windows/Plugins/MetadataViewer.cs b/OpenTabletDriver.UX/Windows/Plugins/MetadataViewer.cs index 70af83084..fe2bafa82 100644 --- a/OpenTabletDriver.UX/Windows/Plugins/MetadataViewer.cs +++ b/OpenTabletDriver.UX/Windows/Plugins/MetadataViewer.cs @@ -56,11 +56,11 @@ public MetadataViewer() return false; var updatableFromRepository = from meta in repo - where PluginMetadata.Match(meta, Metadata) - where meta.PluginVersion > Metadata.PluginVersion - where CurrentDriverVersion >= meta.SupportedDriverVersion - orderby meta.PluginVersion descending - select meta; + where PluginMetadata.Match(meta, Metadata) + where meta.PluginVersion > Metadata.PluginVersion + where CurrentDriverVersion >= meta.SupportedDriverVersion + orderby meta.PluginVersion descending + select meta; return updatableFromRepository.Any(); }, @@ -150,7 +150,7 @@ orderby meta.PluginVersion descending driverVersion.TextBinding.Bind(MetadataBinding.Child(c => c.SupportedDriverVersion).Convert(v => v?.ToString())); pluginVersion.TextBinding.Bind(MetadataBinding.Child(c => c.PluginVersion).Convert(v => v?.ToString())); license.TextBinding.Bind(MetadataBinding.Child(c => c.LicenseIdentifier)); - + sourceCode.GetEnabledBinding().Bind(MetadataBinding.Child(c => c.RepositoryUrl).Convert(c => c != null)); sourceCode.Click += (sender, e) => DesktopInterop.Open(Metadata.RepositoryUrl); @@ -166,7 +166,7 @@ orderby meta.PluginVersion descending private Label name, owner, description, driverVersion, pluginVersion, license; private Button sourceCode, wiki; - + private Version CurrentDriverVersion = Assembly.GetExecutingAssembly().GetName().Version; private Button uninstallButton, installButton; @@ -231,7 +231,7 @@ private async void InstallHandler(object sender, EventArgs e) private async void UninstallHandler(object sender, EventArgs e) { this.ParentWindow.Enabled = false; - + await RequestPluginUninstall?.Invoke(Metadata); this.ParentWindow.Enabled = true; diff --git a/OpenTabletDriver.UX/Windows/Plugins/PluginDropPanel.cs b/OpenTabletDriver.UX/Windows/Plugins/PluginDropPanel.cs index f835e7df3..414a8f820 100644 --- a/OpenTabletDriver.UX/Windows/Plugins/PluginDropPanel.cs +++ b/OpenTabletDriver.UX/Windows/Plugins/PluginDropPanel.cs @@ -131,4 +131,4 @@ protected override async void OnDragDrop(DragEventArgs args) } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Windows/Plugins/PluginManagerWindow.cs b/OpenTabletDriver.UX/Windows/Plugins/PluginManagerWindow.cs index 39856a68b..a381724eb 100644 --- a/OpenTabletDriver.UX/Windows/Plugins/PluginManagerWindow.cs +++ b/OpenTabletDriver.UX/Windows/Plugins/PluginManagerWindow.cs @@ -137,7 +137,7 @@ protected async Task Uninstall(PluginMetadata metadata) private MenuBar ConstructMenu() { - var quitCommand = new Command { MenuText = "Exit", Shortcut = Keys.Escape }; + var quitCommand = new Command { MenuText = "Exit", Shortcut = Keys.Escape }; quitCommand.Executed += (_, _) => this.Close(); var install = new Command { MenuText = "Install plugin...", Shortcut = Application.Instance.CommonModifier | Keys.O }; @@ -183,7 +183,7 @@ private async void PromptInstallPlugin(object sender, EventArgs e) if (dialog.ShowDialog(this) == DialogResult.Ok) { - foreach(var file in dialog.Filenames) + foreach (var file in dialog.Filenames) { await Install(file); } diff --git a/OpenTabletDriver.UX/Windows/Plugins/PluginMetadataList.cs b/OpenTabletDriver.UX/Windows/Plugins/PluginMetadataList.cs index 751b76964..bccf123e6 100644 --- a/OpenTabletDriver.UX/Windows/Plugins/PluginMetadataList.cs +++ b/OpenTabletDriver.UX/Windows/Plugins/PluginMetadataList.cs @@ -44,23 +44,23 @@ public void SetRepository(PluginMetadataCollection repository) => Application.In var selected = this.SelectedItem; var local = from ctx in AppInfo.PluginManager.GetLoadedPlugins() - orderby ctx.FriendlyName - select ctx.GetMetadata(); + orderby ctx.FriendlyName + select ctx.GetMetadata(); var remote = from meta in Repository - where meta.IsSupportedBy(AppVersion) - where !local.Any(m => PluginMetadata.Match(m, meta)) - select meta; + where meta.IsSupportedBy(AppVersion) + where !local.Any(m => PluginMetadata.Match(m, meta)) + select meta; var plugins = from meta in local.Concat(remote) - orderby meta.PluginVersion descending - group meta by (meta.Name, meta.Owner, meta.RepositoryUrl); + orderby meta.PluginVersion descending + group meta by (meta.Name, meta.Owner, meta.RepositoryUrl); var query = from plugin in plugins - let meta = plugin.FirstOrDefault() - orderby meta.Name - orderby local.Any(m => PluginMetadata.Match(m, meta)) descending - select meta; + let meta = plugin.FirstOrDefault() + orderby meta.Name + orderby local.Any(m => PluginMetadata.Match(m, meta)) descending + select meta; this.DataStore = query.ToList(); @@ -104,4 +104,4 @@ protected async Task DownloadMetadataAsync() return PluginMetadataCollection.Empty; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Windows/StylizedPage.cs b/OpenTabletDriver.UX/Windows/StylizedPage.cs index d602d2282..c9bebacc4 100644 --- a/OpenTabletDriver.UX/Windows/StylizedPage.cs +++ b/OpenTabletDriver.UX/Windows/StylizedPage.cs @@ -14,4 +14,4 @@ public StylizedPage() this.Text = type.GetCustomAttribute()?.Name ?? type.Name; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Windows/Updater/UpdaterWindow.cs b/OpenTabletDriver.UX/Windows/Updater/UpdaterWindow.cs index 200448b9d..4e5d99ba9 100644 --- a/OpenTabletDriver.UX/Windows/Updater/UpdaterWindow.cs +++ b/OpenTabletDriver.UX/Windows/Updater/UpdaterWindow.cs @@ -76,15 +76,15 @@ private void Update(object sender, EventArgs e) => Application.Instance.AsyncInv PluginPlatform.MacOS => Path.Join(basePath, "OpenTabletDriver.UX.MacOS"), _ => throw new NotSupportedException("Current platform does not support updating.") }; - + await App.Driver.Instance.InstallUpdate(); - + Process.Start(path); - + if (Application.Instance.QuitIsSupported) Application.Instance.Quit(); else Environment.Exit(0); }); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver.UX/Windows/WindowSingleton.cs b/OpenTabletDriver.UX/Windows/WindowSingleton.cs index 6a1ffa009..f687fd59c 100644 --- a/OpenTabletDriver.UX/Windows/WindowSingleton.cs +++ b/OpenTabletDriver.UX/Windows/WindowSingleton.cs @@ -35,4 +35,4 @@ private void HandleWindowClosed(object sender, EventArgs e) window = null; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/ComponentProviders/DeviceHubsProvider.cs b/OpenTabletDriver/ComponentProviders/DeviceHubsProvider.cs index 91baeedf9..01e1c5ad3 100644 --- a/OpenTabletDriver/ComponentProviders/DeviceHubsProvider.cs +++ b/OpenTabletDriver/ComponentProviders/DeviceHubsProvider.cs @@ -23,4 +23,4 @@ public DeviceHubsProvider(IServiceProvider serviceProvider) public IEnumerable DeviceHubs { get; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/Devices/DeviceReader.cs b/OpenTabletDriver/Devices/DeviceReader.cs index 564e7addc..834985c89 100644 --- a/OpenTabletDriver/Devices/DeviceReader.cs +++ b/OpenTabletDriver/Devices/DeviceReader.cs @@ -38,7 +38,7 @@ public DeviceReader(IDeviceEndpoint endpoint, IReportParser reportParser) /// The in which the device reports will be parsed with. /// public IReportParser Parser { private set; get; } - + /// /// Whether or not to make an extra cloned report with data left unmodified. /// @@ -94,7 +94,7 @@ protected virtual void Start() { if (!initialized) initialized = Initialize(); - + if (initialized) workerThread.Start(); } @@ -109,7 +109,7 @@ protected void Main() var data = ReportStream.Read(); if (Parser.Parse(data) is T report) OnReport(report); - + // We create a clone of the report to avoid data being modified on the tablet debugger. if (RawClone && RawReport != null && Parser.Parse(data) is T debugReport) OnRawReport(debugReport); diff --git a/OpenTabletDriver/Devices/HidSharpBackend/HidSharpDeviceRoot.cs b/OpenTabletDriver/Devices/HidSharpBackend/HidSharpDeviceRoot.cs index d43915f01..ad33f66ea 100644 --- a/OpenTabletDriver/Devices/HidSharpBackend/HidSharpDeviceRoot.cs +++ b/OpenTabletDriver/Devices/HidSharpBackend/HidSharpDeviceRoot.cs @@ -33,4 +33,4 @@ public IEnumerable GetDevices() return DeviceList.Local.GetHidDevices().Select(d => new HidSharpEndpoint(d)); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/Devices/HidSharpBackend/HidSharpEndpoint.cs b/OpenTabletDriver/Devices/HidSharpBackend/HidSharpEndpoint.cs index db9ce701b..faf71400e 100644 --- a/OpenTabletDriver/Devices/HidSharpBackend/HidSharpEndpoint.cs +++ b/OpenTabletDriver/Devices/HidSharpBackend/HidSharpEndpoint.cs @@ -29,4 +29,4 @@ internal HidSharpEndpoint(HidDevice device) public IDeviceEndpointStream Open() => device.TryOpen(out var stream) ? new HidSharpEndpointStream(stream) : null; public string GetDeviceString(byte index) => device.GetDeviceString(index); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/Devices/HidSharpBackend/HidSharpEndpointStream.cs b/OpenTabletDriver/Devices/HidSharpBackend/HidSharpEndpointStream.cs index f2563dd5e..6022546db 100644 --- a/OpenTabletDriver/Devices/HidSharpBackend/HidSharpEndpointStream.cs +++ b/OpenTabletDriver/Devices/HidSharpBackend/HidSharpEndpointStream.cs @@ -22,4 +22,4 @@ internal HidSharpEndpointStream(HidStream stream) public void Dispose() => stream.Dispose(); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/Devices/RootHub.cs b/OpenTabletDriver/Devices/RootHub.cs index 3a906ad9a..2a2ca0156 100644 --- a/OpenTabletDriver/Devices/RootHub.cs +++ b/OpenTabletDriver/Devices/RootHub.cs @@ -165,4 +165,4 @@ private RootHub RegisterServiceProvider(IServiceProvider serviceProvider) return this; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/Devices/WinUSB/WinUSBInterface.cs b/OpenTabletDriver/Devices/WinUSB/WinUSBInterface.cs index 54ef9d247..3135b91b3 100644 --- a/OpenTabletDriver/Devices/WinUSB/WinUSBInterface.cs +++ b/OpenTabletDriver/Devices/WinUSB/WinUSBInterface.cs @@ -201,4 +201,4 @@ internal void ReturnHandle(SafeWinUsbInterfaceHandle handle) } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/Devices/WinUSB/WinUSBInterfaceStream.cs b/OpenTabletDriver/Devices/WinUSB/WinUSBInterfaceStream.cs index 47f0cb3dc..fef8f1860 100644 --- a/OpenTabletDriver/Devices/WinUSB/WinUSBInterfaceStream.cs +++ b/OpenTabletDriver/Devices/WinUSB/WinUSBInterfaceStream.cs @@ -112,4 +112,4 @@ public void Dispose() usbInterface.ReturnHandle(winUsbHandle); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/Devices/WinUSB/WinUSBRootHub.cs b/OpenTabletDriver/Devices/WinUSB/WinUSBRootHub.cs index f9cd2baa6..c2893f671 100644 --- a/OpenTabletDriver/Devices/WinUSB/WinUSBRootHub.cs +++ b/OpenTabletDriver/Devices/WinUSB/WinUSBRootHub.cs @@ -152,4 +152,4 @@ private void HookDeviceNotification() _callbackPin.Free(); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/Devices/WinUSB/WindowsEnumerationException.cs b/OpenTabletDriver/Devices/WinUSB/WindowsEnumerationException.cs index 32c6fe6e0..21da5db3a 100644 --- a/OpenTabletDriver/Devices/WinUSB/WindowsEnumerationException.cs +++ b/OpenTabletDriver/Devices/WinUSB/WindowsEnumerationException.cs @@ -9,4 +9,4 @@ public WindowsEnumerationException(string msg) { } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/Driver.cs b/OpenTabletDriver/Driver.cs index 25cd42b67..78976dadc 100644 --- a/OpenTabletDriver/Driver.cs +++ b/OpenTabletDriver/Driver.cs @@ -145,14 +145,14 @@ public virtual bool Detect() private IEnumerable GetMatchingDevices(TabletConfiguration configuration, DeviceIdentifier identifier) { return from device in CompositeDeviceHub.GetDevices() - where identifier.VendorID == device.VendorID - where identifier.ProductID == device.ProductID - where device.CanOpen - where identifier.InputReportLength == null || identifier.InputReportLength == device.InputReportLength - where identifier.OutputReportLength == null || identifier.OutputReportLength == device.OutputReportLength - where DeviceMatchesStrings(device, identifier.DeviceStrings) - where DeviceMatchesAttribute(device, configuration.Attributes) - select device; + where identifier.VendorID == device.VendorID + where identifier.ProductID == device.ProductID + where device.CanOpen + where identifier.InputReportLength == null || identifier.InputReportLength == device.InputReportLength + where identifier.OutputReportLength == null || identifier.OutputReportLength == device.OutputReportLength + where DeviceMatchesStrings(device, identifier.DeviceStrings) + where DeviceMatchesAttribute(device, configuration.Attributes) + select device; } private bool DeviceMatchesStrings(IDeviceEndpoint device, IDictionary deviceStrings) diff --git a/OpenTabletDriver/DriverAlreadyBuiltException.cs b/OpenTabletDriver/DriverAlreadyBuiltException.cs index 40991af92..f88f0308e 100644 --- a/OpenTabletDriver/DriverAlreadyBuiltException.cs +++ b/OpenTabletDriver/DriverAlreadyBuiltException.cs @@ -18,4 +18,4 @@ public DriverAlreadyBuiltException(string? message, Exception? innerException) : { } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/DriverBuilder.cs b/OpenTabletDriver/DriverBuilder.cs index 99f167e33..2463a54e7 100644 --- a/OpenTabletDriver/DriverBuilder.cs +++ b/OpenTabletDriver/DriverBuilder.cs @@ -59,4 +59,4 @@ public T Build(out IServiceCollection serviceCollection) where T : class, IDr return driver; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/DriverServiceCollection.cs b/OpenTabletDriver/DriverServiceCollection.cs index ec50ddcbf..f9a8a8908 100644 --- a/OpenTabletDriver/DriverServiceCollection.cs +++ b/OpenTabletDriver/DriverServiceCollection.cs @@ -26,4 +26,4 @@ public DriverServiceCollection() this.Add(serviceDescriptor); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/Extensions.cs b/OpenTabletDriver/Extensions.cs index 135cf1098..1fc3cec4e 100644 --- a/OpenTabletDriver/Extensions.cs +++ b/OpenTabletDriver/Extensions.cs @@ -22,4 +22,4 @@ public static bool TryGet(this TSource source, Func(this TSource source, Func predicate, TValue fallback) => TryGet(source, predicate, out var value) ? value : fallback; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/InputDevice.cs b/OpenTabletDriver/InputDevice.cs index 6641359b0..f70bdec12 100644 --- a/OpenTabletDriver/InputDevice.cs +++ b/OpenTabletDriver/InputDevice.cs @@ -110,4 +110,4 @@ private bool TryGetDeviceProperty(Func predicate, out T v private T SafeGetDeviceProperty(Func predicate, T fallback) => TryGetDeviceProperty(predicate, out var val) ? val : fallback; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/InputDeviceTree.cs b/OpenTabletDriver/InputDeviceTree.cs index 32628e20f..817f59e2b 100644 --- a/OpenTabletDriver/InputDeviceTree.cs +++ b/OpenTabletDriver/InputDeviceTree.cs @@ -62,4 +62,4 @@ private void HandleReport(object? sender, IDeviceReport report) public static implicit operator TabletReference(InputDeviceTree deviceGroup) => deviceGroup.CreateReference(); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/InputDeviceTreeList.cs b/OpenTabletDriver/InputDeviceTreeList.cs index de39d418d..ece82dfda 100644 --- a/OpenTabletDriver/InputDeviceTreeList.cs +++ b/OpenTabletDriver/InputDeviceTreeList.cs @@ -11,10 +11,10 @@ protected override void ClearItems() foreach (var tree in base.Items) foreach (var dev in tree.InputDevices) outdatedDevices.Add(dev); - + foreach (var dev in outdatedDevices) dev.Dispose(); - + base.ClearItems(); } } diff --git a/OpenTabletDriver/Instance.cs b/OpenTabletDriver/Instance.cs index 1fb52c3cb..18412062e 100644 --- a/OpenTabletDriver/Instance.cs +++ b/OpenTabletDriver/Instance.cs @@ -45,4 +45,4 @@ public void Dispose() mutex.Dispose(); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/Interop/SleepDetectionThread.cs b/OpenTabletDriver/Interop/SleepDetectionThread.cs index 5e0a4eb51..66f0d29e4 100644 --- a/OpenTabletDriver/Interop/SleepDetectionThread.cs +++ b/OpenTabletDriver/Interop/SleepDetectionThread.cs @@ -64,4 +64,4 @@ public void Dispose() GC.SuppressFinalize(this); } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/Interop/SystemInterop.cs b/OpenTabletDriver/Interop/SystemInterop.cs index 05468a9de..df12adf5a 100644 --- a/OpenTabletDriver/Interop/SystemInterop.cs +++ b/OpenTabletDriver/Interop/SystemInterop.cs @@ -26,4 +26,4 @@ public static PluginPlatform CurrentPlatform } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/SystemDrivers/DriverInfo.cs b/OpenTabletDriver/SystemDrivers/DriverInfo.cs index 25effcad8..05f3dba93 100644 --- a/OpenTabletDriver/SystemDrivers/DriverInfo.cs +++ b/OpenTabletDriver/SystemDrivers/DriverInfo.cs @@ -64,4 +64,4 @@ public static IEnumerable GetDriverInfos() internal static Process[] SystemProcesses { get; private set; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/SystemDrivers/IDriverInfoProvider.cs b/OpenTabletDriver/SystemDrivers/IDriverInfoProvider.cs index 692f1b93f..0b34c5da1 100644 --- a/OpenTabletDriver/SystemDrivers/IDriverInfoProvider.cs +++ b/OpenTabletDriver/SystemDrivers/IDriverInfoProvider.cs @@ -4,4 +4,4 @@ internal interface IDriverInfoProvider { DriverInfo GetDriverInfo(); } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/SystemDrivers/Providers/GaomonDriverInfoProvider.cs b/OpenTabletDriver/SystemDrivers/Providers/GaomonDriverInfoProvider.cs index f4d75dccc..0b68a9c4d 100644 --- a/OpenTabletDriver/SystemDrivers/Providers/GaomonDriverInfoProvider.cs +++ b/OpenTabletDriver/SystemDrivers/Providers/GaomonDriverInfoProvider.cs @@ -18,4 +18,4 @@ internal class GaomonDriverInfoProvider : ProcessModuleQueryableDriverInfoProvid "Gaomon" }; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/SystemDrivers/Providers/HuionDriverInfoProvider.cs b/OpenTabletDriver/SystemDrivers/Providers/HuionDriverInfoProvider.cs index 63bb0820b..5fc6c4569 100644 --- a/OpenTabletDriver/SystemDrivers/Providers/HuionDriverInfoProvider.cs +++ b/OpenTabletDriver/SystemDrivers/Providers/HuionDriverInfoProvider.cs @@ -18,4 +18,4 @@ internal class HuionDriverInfoProvider : ProcessModuleQueryableDriverInfoProvide "Huion" }; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/SystemDrivers/Providers/OpenTabletDriverInfoProvider.cs b/OpenTabletDriver/SystemDrivers/Providers/OpenTabletDriverInfoProvider.cs index a2bc6e170..9d2da60fc 100644 --- a/OpenTabletDriver/SystemDrivers/Providers/OpenTabletDriverInfoProvider.cs +++ b/OpenTabletDriver/SystemDrivers/Providers/OpenTabletDriverInfoProvider.cs @@ -17,4 +17,4 @@ public DriverInfo GetDriverInfo() return null; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/SystemDrivers/Providers/ProcessModuleQueryableDriverInfoProvider.cs b/OpenTabletDriver/SystemDrivers/Providers/ProcessModuleQueryableDriverInfoProvider.cs index 3d5141453..2cfe139bb 100644 --- a/OpenTabletDriver/SystemDrivers/Providers/ProcessModuleQueryableDriverInfoProvider.cs +++ b/OpenTabletDriver/SystemDrivers/Providers/ProcessModuleQueryableDriverInfoProvider.cs @@ -97,4 +97,4 @@ internal static void Refresh() } } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/SystemDrivers/Providers/TabletDriverInfoProvider.cs b/OpenTabletDriver/SystemDrivers/Providers/TabletDriverInfoProvider.cs index ac2aa79d8..eaa62fb7c 100644 --- a/OpenTabletDriver/SystemDrivers/Providers/TabletDriverInfoProvider.cs +++ b/OpenTabletDriver/SystemDrivers/Providers/TabletDriverInfoProvider.cs @@ -32,4 +32,4 @@ public DriverInfo GetDriverInfo() return null; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/SystemDrivers/Providers/VeikkDriverInfoProvider.cs b/OpenTabletDriver/SystemDrivers/Providers/VeikkDriverInfoProvider.cs index 85362ab51..0741a3060 100644 --- a/OpenTabletDriver/SystemDrivers/Providers/VeikkDriverInfoProvider.cs +++ b/OpenTabletDriver/SystemDrivers/Providers/VeikkDriverInfoProvider.cs @@ -19,4 +19,4 @@ internal class VeikkDriverInfoDriver : ProcessModuleQueryableDriverInfoProvider "Veikk" }; } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/SystemDrivers/Providers/WacomDriverInfoProvider.cs b/OpenTabletDriver/SystemDrivers/Providers/WacomDriverInfoProvider.cs index 23c34a461..f37d0bb1d 100644 --- a/OpenTabletDriver/SystemDrivers/Providers/WacomDriverInfoProvider.cs +++ b/OpenTabletDriver/SystemDrivers/Providers/WacomDriverInfoProvider.cs @@ -35,4 +35,4 @@ protected override DriverInfo GetLinuxDriverInfo() return info; } } -} \ No newline at end of file +} diff --git a/OpenTabletDriver/SystemDrivers/Providers/XPPenDriverInfoProvider.cs b/OpenTabletDriver/SystemDrivers/Providers/XPPenDriverInfoProvider.cs index fb96abde4..14abd7a2e 100644 --- a/OpenTabletDriver/SystemDrivers/Providers/XPPenDriverInfoProvider.cs +++ b/OpenTabletDriver/SystemDrivers/Providers/XPPenDriverInfoProvider.cs @@ -55,4 +55,4 @@ protected override DriverInfo GetWinDriverInfo() } } } -} \ No newline at end of file +}