Skip to content

Commit

Permalink
OTD: dotnet format sweep
Browse files Browse the repository at this point in the history
  • Loading branch information
vedxyz committed Jan 7, 2022
1 parent 63c0bc9 commit 0c8fde0
Show file tree
Hide file tree
Showing 343 changed files with 506 additions and 506 deletions.
2 changes: 1 addition & 1 deletion OpenTabletDriver.Benchmarks/Benchmark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ public static void Main(string[] args)
BenchmarkSwitcher.FromAssembly(typeof(Benchmark).Assembly).Run(args);
}
}
}
}
2 changes: 1 addition & 1 deletion OpenTabletDriver.Benchmarks/Misc/DriverInfoBenchmark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ public DriverInfo[] GetDriverInfos()
return DriverInfo.GetDriverInfos().ToArray();
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ public void EvdevRelative()
relativePointer.SetPosition(Vector2.Zero);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ public void CoreGraphicsRelative()
relativePointer.SetPosition(Vector2.Zero);
}
}
}
}
2 changes: 1 addition & 1 deletion OpenTabletDriver.Benchmarks/Output/NoopAbsoluteMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ public void SetPosition(Vector2 pos)
}
}
}
}
}
2 changes: 1 addition & 1 deletion OpenTabletDriver.Benchmarks/Output/OutputBenchmark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ public void Output()
OutputMode.Read(Report);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ public void SendInputRelative()
relativePointer.SetPosition(Vector2.Zero);
}
}
}
}
4 changes: 2 additions & 2 deletions OpenTabletDriver.Benchmarks/Parser/ReportParserBenchmark.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down Expand Up @@ -31,4 +31,4 @@ public void SkipByteReportParser()
skipParser.Parse(data);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ public void ConstructReportParserProvider()
ReportParserProvider = new ReportParserProvider();
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ public void PluginManagerCtor()
pluginManager = new PluginManager();
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ private static TabletConfiguration Deserialize(JsonSerializer jsonSerializer, St
return jsonSerializer.Deserialize<TabletConfiguration>(jsonReader);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ public AcepenAuxReport(byte[] report, bool[] auxState)
public bool[] AuxButtons { set; get; }
public byte[] Raw { set; get; }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ public IDeviceReport Parse(byte[] report)
};
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ public AcepenTabletReport(byte[] report)
public bool[] PenButtons { set; get; }
public Vector2 Tilt { set; get; }
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Numerics;
using OpenTabletDriver.Plugin.Tablet;
using System.Runtime.CompilerServices;
using OpenTabletDriver.Plugin.Tablet;

namespace OpenTabletDriver.Configurations.Parsers.Genius
{
Expand Down Expand Up @@ -32,4 +32,4 @@ public GeniusMouseReport(byte[] report)
public bool[] MouseButtons { set; get; }
public Vector2 Scroll { set; get; }
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using OpenTabletDriver.Plugin.Tablet;
using OpenTabletDriver.Configurations.Parsers.UCLogic;
using OpenTabletDriver.Plugin.Tablet;

namespace OpenTabletDriver.Configurations.Parsers.Huion
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ public override IDeviceReport Parse(byte[] data)
return base.Parse(data[1..^0]);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ public IDeviceReport Parse(byte[] data)
return new TabletReport(data);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ public IDeviceReport Parse(byte[] report)
return new DeviceReport(report);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ public VeikkTabletReport(byte[] report)
public uint Pressure { set; get; }
public bool[] PenButtons { set; get; }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ public IDeviceReport Parse(byte[] report)
return new DeviceReport(report);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ public WoodPadReport(byte[] report)
public Vector2 Tilt { get; set; }
public bool[] PenButtons { set; get; }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ public BambooAuxReport(byte[] report)
public byte[] Raw { set; get; }
public bool[] AuxButtons { set; get; }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ public BambooMouseReport(byte[] report)
public Vector2 Scroll { get; set; }
public bool[] AuxButtons { get; set; }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ private IDeviceReport GetToolReport(byte[] report)
return new DeviceReport(report);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ public IntuosTabletReport(byte[] report)
public bool NearProximity { set; get; }
public uint HoverDistance { set; get; }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ public override IDeviceReport Parse(byte[] report)
return base.Parse(report[1..^0]);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ public Intuos3AuxReport(byte[] report)
public bool[] AuxButtons { set; get; }
public byte[] Raw { set; get; }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ public Intuos3MouseReport(byte[] report)
public bool[] MouseButtons { set; get; }
public Vector2 Scroll { set; get; }
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using OpenTabletDriver.Plugin.Tablet;
using OpenTabletDriver.Configurations.Parsers.Wacom.IntuosV1;
using OpenTabletDriver.Plugin.Tablet;

namespace OpenTabletDriver.Configurations.Parsers.Wacom.Intuos3
{
Expand Down Expand Up @@ -27,4 +27,4 @@ private IDeviceReport GetToolReport(byte[] data)
};
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ public override IDeviceReport Parse(byte[] data)
return base.Parse(data[1..^0]);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace OpenTabletDriver.Configurations.Parsers.Wacom.Intuos4
{
public struct Intuos4AuxReport : IAuxReport
{
public Intuos4AuxReport (byte[] report)
public Intuos4AuxReport(byte[] report)
{
Raw = report;

Expand All @@ -20,7 +20,7 @@ public Intuos4AuxReport (byte[] report)
(report[3] & (1 << 7)) != 0
};
}

public byte[] Raw { set; get; }
public bool[] AuxButtons { set; get; }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public IntuosV1AuxReport(byte[] report)
auxByte.IsBitSet(7),
};
}

public byte[] Raw { set; get; }
public bool[] AuxButtons { set; get; }
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ public IntuosV1TabletReport(byte[] report)
public bool NearProximity { set; get; }
public uint HoverDistance { set; get; }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ public override IDeviceReport Parse(byte[] data)
return base.Parse(data[1..^0]);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public IntuosV2AuxReport(byte[] report)
auxByte.IsBitSet(7),
};
}

public byte[] Raw { set; get; }
public bool[] AuxButtons { set; get; }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ public virtual IDeviceReport Parse(byte[] data)

private TouchPoint[] prevTouches;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ public override IDeviceReport Parse(byte[] data)
return base.Parse(data[1..^0]);
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using OpenTabletDriver.Plugin.Tablet;
using OpenTabletDriver.Configurations.Parsers.XP_Pen;
using OpenTabletDriver.Plugin.Tablet;

namespace OpenTabletDriver.Configurations.Parsers.XenceLabs
{
Expand All @@ -17,4 +17,4 @@ public IDeviceReport Parse(byte[] report)
return new DeviceReport(report);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ public XenceLabsTabletReport(byte[] report)
public Vector2 Tilt { set; get; }
public bool Eraser { set; get; }
}
}
}
2 changes: 1 addition & 1 deletion OpenTabletDriver.Configurations/ReportParserProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ private static Dictionary<string, Func<IReportParser<IDeviceReport>>> CreatePars
);
}
}
}
}
6 changes: 3 additions & 3 deletions OpenTabletDriver.Console/CommandTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static Command CreateCommand<T1, T2, T3>(Func<T1, T2, T3, Task> action, s
command.AddAlias(alias);
return command;
}

public static Command CreateCommand<T1, T2, T3, T4>(Func<T1, T2, T3, T4, Task> action, string description, params string[] aliases)
{
var parameters = action.Method.GetParameters();
Expand Down Expand Up @@ -90,7 +90,7 @@ public static Command CreateCommand<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5,
command.Handler = CommandHandler.Create<T1, T2, T3, T4, T5>(action);
return command;
}

public static Command CreateCommand<T1, T2, T3, T4, T5, T6>(Func<T1, T2, T3, T4, T5, T6, Task> action, string description, params string[] aliases)
{
var parameters = action.Method.GetParameters();
Expand All @@ -107,4 +107,4 @@ public static Command CreateCommand<T1, T2, T3, T4, T5, T6>(Func<T1, T2, T3, T4,
return command;
}
}
}
}
2 changes: 1 addition & 1 deletion OpenTabletDriver.Console/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ public static IEnumerable<string> Format(this IEnumerable<PluginSettingStore> st
}
}
}
}
}
2 changes: 1 addition & 1 deletion OpenTabletDriver.Console/Program.Commands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ private static async Task HasUpdate()
}

private static async Task InstallUpdate()
{
{
if (await Driver.Instance.HasUpdate())
{
await Driver.Instance.InstallUpdate();
Expand Down
Loading

0 comments on commit 0c8fde0

Please sign in to comment.