Skip to content

Commit

Permalink
Dependency Injection Rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
InfinityGhost committed Jul 20, 2022
1 parent 325c28c commit 10a3c07
Show file tree
Hide file tree
Showing 769 changed files with 12,707 additions and 15,750 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<VersionBase>0.6.0.4</VersionBase>
<VersionBase>0.7.0.0</VersionBase>
<FrameworkBase>net6.0</FrameworkBase>
<LangVersion>preview</LangVersion>
<VersionPrefix>$(VersionBase)</VersionPrefix>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

<ItemGroup Label="NuGet Packages">
<PackageReference Include="BenchmarkDotNet" Version="0.12.1" />
<PackageReference Include="Moq" Version="4.16.1" />
</ItemGroup>

<ItemGroup Label="Project References">
Expand Down
4 changes: 2 additions & 2 deletions OpenTabletDriver.Benchmarks/Output/NoopAbsoluteMode.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Numerics;
using OpenTabletDriver.Plugin.Output;
using OpenTabletDriver.Plugin.Platform.Pointer;
using OpenTabletDriver.Output;
using OpenTabletDriver.Platform.Pointer;

namespace OpenTabletDriver.Benchmarks.Output
{
Expand Down
4 changes: 2 additions & 2 deletions OpenTabletDriver.Benchmarks/Output/OutputBenchmark.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System;
using BenchmarkDotNet.Attributes;
using OpenTabletDriver.Desktop.Profiles;
using OpenTabletDriver.Plugin.Output;
using OpenTabletDriver.Plugin.Tablet;
using OpenTabletDriver.Output;
using OpenTabletDriver.Tablet;

namespace OpenTabletDriver.Benchmarks.Output
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using BenchmarkDotNet.Attributes;
using OpenTabletDriver.Configurations.Parsers;
using OpenTabletDriver.Plugin.Tablet;
using OpenTabletDriver.Tablet;

namespace OpenTabletDriver.Benchmarks.Parser
{
Expand Down
7 changes: 5 additions & 2 deletions OpenTabletDriver.Benchmarks/Plugin/PluginManagerBenchmark.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
using BenchmarkDotNet.Attributes;
using Moq;
using OpenTabletDriver.Desktop.Interop.AppInfo;
using OpenTabletDriver.Desktop.Reflection;

namespace OpenTabletDriver.Benchmarks.Plugin
{
[DryJob]
public class PluginManagerBenchmark
{
public PluginManager pluginManager;
private PluginManager _pluginManager;

[Benchmark]
public void PluginManagerCtor()
{
pluginManager = new PluginManager();
var appInfo = new Mock<AppInfo>();
_pluginManager = new PluginManager(appInfo.Object);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
},
"Pen": {
"MaxPressure": 8191,
"Buttons": {
"ButtonCount": 2
}
"ButtonCount": 2
},
"AuxiliaryButtons": {
"ButtonCount": 12
Expand All @@ -32,7 +30,7 @@
"InitializationStrings": []
}
],
"AuxilaryDeviceIdentifiers": [
"AuxiliaryDeviceIdentifiers": [
{
"VendorID": 2290,
"ProductID": 26641,
Expand All @@ -53,4 +51,4 @@
"Attributes": {
"libinputoverride": "1"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
},
"Pen": {
"MaxPressure": 8191,
"Buttons": {
"ButtonCount": 2
}
"ButtonCount": 2
},
"AuxiliaryButtons": {
"ButtonCount": 8
Expand All @@ -36,6 +34,6 @@
"InitializationStrings": []
}
],
"AuxilaryDeviceIdentifiers": [],
"AuxiliaryDeviceIdentifiers": [],
"Attributes": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
},
"Pen": {
"MaxPressure": 8191,
"Buttons": {
"ButtonCount": 2
}
"ButtonCount": 2
},
"AuxiliaryButtons": {
"ButtonCount": 8
Expand All @@ -36,8 +34,8 @@
]
}
],
"AuxilaryDeviceIdentifiers": [],
"AuxiliaryDeviceIdentifiers": [],
"Attributes": {
"libinputoverride": "1"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
},
"Pen": {
"MaxPressure": 2047,
"Buttons": {
"ButtonCount": 2
}
"ButtonCount": 2
},
"AuxiliaryButtons": null,
"MouseButtons": null,
Expand All @@ -30,8 +28,8 @@
"InitializationStrings": []
}
],
"AuxilaryDeviceIdentifiers": [],
"AuxiliaryDeviceIdentifiers": [],
"Attributes": {
"libinputoverride": "1"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
},
"Pen": {
"MaxPressure": 8191,
"Buttons": {
"ButtonCount": 2
}
"ButtonCount": 2
},
"AuxiliaryButtons": {
"ButtonCount": 8
Expand All @@ -25,7 +23,7 @@
"ProductID": 129,
"InputReportLength": 10,
"OutputReportLength": null,
"ReportParser": "OpenTabletDriver.Plugin.Tablet.TabletReportParser",
"ReportParser": "OpenTabletDriver.Tablet.TabletReportParser",
"FeatureInitReport": null,
"OutputInitReport": null,
"DeviceStrings": {
Expand All @@ -36,8 +34,8 @@
]
}
],
"AuxilaryDeviceIdentifiers": [],
"AuxiliaryDeviceIdentifiers": [],
"Attributes": {
"libinputoverride": "1"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
},
"Pen": {
"MaxPressure": 8191,
"Buttons": {
"ButtonCount": 2
}
"ButtonCount": 2
},
"AuxiliaryButtons": {
"ButtonCount": 12
Expand Down Expand Up @@ -51,8 +49,8 @@
]
}
],
"AuxilaryDeviceIdentifiers": [],
"AuxiliaryDeviceIdentifiers": [],
"Attributes": {
"libinputoverride": "1"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
},
"Pen": {
"MaxPressure": 8191,
"Buttons": {
"ButtonCount": 2
}
"ButtonCount": 2
},
"AuxiliaryButtons": {
"ButtonCount": 12
Expand All @@ -36,8 +34,8 @@
]
}
],
"AuxilaryDeviceIdentifiers": [],
"AuxiliaryDeviceIdentifiers": [],
"Attributes": {
"libinputoverride": "1"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
},
"Pen": {
"MaxPressure": 2047,
"Buttons": {
"ButtonCount": 2
}
"ButtonCount": 2
},
"AuxiliaryButtons": {
"ButtonCount": 12
Expand All @@ -36,8 +34,8 @@
]
}
],
"AuxilaryDeviceIdentifiers": [],
"AuxiliaryDeviceIdentifiers": [],
"Attributes": {
"libinputoverride": "1"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
},
"Pen": {
"MaxPressure": 8191,
"Buttons": {
"ButtonCount": 2
}
"ButtonCount": 2
},
"AuxiliaryButtons": {
"ButtonCount": 10
Expand All @@ -36,8 +34,8 @@
]
}
],
"AuxilaryDeviceIdentifiers": [],
"AuxiliaryDeviceIdentifiers": [],
"Attributes": {
"libinputoverride": "1"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
},
"Pen": {
"MaxPressure": 8191,
"Buttons": {
"ButtonCount": 2
}
"ButtonCount": 2
},
"AuxiliaryButtons": {
"ButtonCount": 11
Expand All @@ -36,8 +34,8 @@
]
}
],
"AuxilaryDeviceIdentifiers": [],
"AuxiliaryDeviceIdentifiers": [],
"Attributes": {
"libinputoverride": "1"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
},
"Pen": {
"MaxPressure": 8191,
"Buttons": {
"ButtonCount": 2
}
"ButtonCount": 2
},
"AuxiliaryButtons": {
"ButtonCount": 8
Expand All @@ -36,8 +34,8 @@
]
}
],
"AuxilaryDeviceIdentifiers": [],
"AuxiliaryDeviceIdentifiers": [],
"Attributes": {
"libinputoverride": "1"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
},
"Pen": {
"MaxPressure": 8191,
"Buttons": {
"ButtonCount": 2
}
"ButtonCount": 2
},
"AuxiliaryButtons": {
"ButtonCount": 12
Expand All @@ -36,8 +34,8 @@
]
}
],
"AuxilaryDeviceIdentifiers": [],
"AuxiliaryDeviceIdentifiers": [],
"Attributes": {
"libinputoverride": "1"
}
}
}
8 changes: 3 additions & 5 deletions OpenTabletDriver.Configurations/Configurations/Gaomon/M6.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
},
"Pen": {
"MaxPressure": 8191,
"Buttons": {
"ButtonCount": 2
}
"ButtonCount": 2
},
"AuxiliaryButtons": {
"ButtonCount": 13
Expand All @@ -36,8 +34,8 @@
]
}
],
"AuxilaryDeviceIdentifiers": [],
"AuxiliaryDeviceIdentifiers": [],
"Attributes": {
"libinputoverride": "1"
}
}
}
Loading

0 comments on commit 10a3c07

Please sign in to comment.