Skip to content

Commit 905b90f

Browse files
committed
Moving Input related classes from Utils to Input folder and namespace
1 parent 74cbe66 commit 905b90f

File tree

7 files changed

+12
-9
lines changed

7 files changed

+12
-9
lines changed

Robot/Abstractions/IInputCallbacks.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Robot.Utils.Win32;
1+
using Robot.Input;
22
using System;
33
using System.ComponentModel;
44

Robot/Utils/Win32/HotkeyCallbacks.cs renamed to Robot/Input/HotkeyCallbacks.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System.Windows.Forms;
77
using Unity.Lifetime;
88

9-
namespace Robot.Utils.Win32
9+
namespace Robot.Input
1010
{
1111
[RegisterTypeToContainer(typeof(IHotkeyCallbacks), typeof(ContainerControlledLifetimeManager))]
1212
public class HotkeyCallbacks : IHotkeyCallbacks

Robot/Utils/Win32/InputCallbacks.cs renamed to Robot/Input/InputCallbacks.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
using RobotRuntime;
1111
using Unity.Lifetime;
1212

13-
namespace Robot.Utils.Win32
13+
namespace Robot.Input
1414
{
1515
[RegisterTypeToContainer(typeof(IInputCallbacks), typeof(ContainerControlledLifetimeManager))]
1616
public class InputCallbacks : IInputCallbacks

Robot/Utils/Win32/KeyEvent.cs renamed to Robot/Input/KeyEvent.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Drawing;
22
using System.Windows.Forms;
33

4-
namespace Robot.Utils.Win32
4+
namespace Robot.Input
55
{
66
public enum KeyAction { KeyDown, KeyUp }
77

Robot/RecordingCreation/RecordingManager.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Robot.Abstractions;
2+
using Robot.Input;
23
using Robot.Settings;
3-
using Robot.Utils.Win32;
44
using RobotRuntime;
55
using RobotRuntime.Abstractions;
66
using RobotRuntime.Commands;
@@ -148,7 +148,7 @@ private void RecordCommand(KeyEvent e, Recording activeRecording, RecordingSetti
148148
AddCommand(new CommandRelease(e.X, e.Y, false));
149149
}
150150
// Did not drag a mouse, treat it as a Press
151-
else
151+
else
152152
{
153153
AddCommand(new CommandPress(e.X, e.Y, false, mouseButton));
154154
}

Robot/Robot.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,10 @@
236236
<Compile Include="Tests\TestFixtureManager.cs" />
237237
<Compile Include="Tests\TestRunnerManager.cs" />
238238
<Compile Include="Utils\CodeEditorVS.cs" />
239-
<Compile Include="Utils\Win32\HotkeyCallbacks.cs" />
239+
<Compile Include="Input\HotkeyCallbacks.cs" />
240240
<Compile Include="Abstractions\IHotkeyCallbacks.cs" />
241-
<Compile Include="Utils\Win32\InputCallbacks.cs" />
242-
<Compile Include="Utils\Win32\KeyEvent.cs" />
241+
<Compile Include="Input\InputCallbacks.cs" />
242+
<Compile Include="Input\KeyEvent.cs" />
243243
</ItemGroup>
244244
<ItemGroup>
245245
<None Include="app.config" />

RobotRuntime/RobotRuntime.csproj

+3
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,9 @@
356356
<Install>false</Install>
357357
</BootstrapperPackage>
358358
</ItemGroup>
359+
<ItemGroup>
360+
<Folder Include="Input\" />
361+
</ItemGroup>
359362
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
360363
<Import Project="..\packages\EMGU.CV.3.3.0.2824\build\Emgu.CV.targets" Condition="Exists('..\packages\EMGU.CV.3.3.0.2824\build\Emgu.CV.targets')" />
361364
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">

0 commit comments

Comments
 (0)