diff --git a/C#/AutoHotInterception/InterceptionWrapper.cs b/C#/AutoHotInterception/InterceptionWrapper.cs index 159d33c..87ab5ff 100644 --- a/C#/AutoHotInterception/InterceptionWrapper.cs +++ b/C#/AutoHotInterception/InterceptionWrapper.cs @@ -104,7 +104,12 @@ public class InterceptionWrapper : IDisposable return true; } - public bool SubscribeMouseMovement(bool block, dynamic callback, int vid, int pid) + public bool SubscribeMouseMove(bool block, dynamic callback, int vid, int pid) + { + return SubscribeMouseMoveRelative(block, callback, vid, pid); + } + + public bool SubscribeMouseMoveRelative(bool block, dynamic callback, int vid, int pid) { int id; id = GetDeviceId(vid, pid, true); @@ -117,6 +122,11 @@ public class InterceptionWrapper : IDisposable return true; } + public bool SubscribeMouseMoveAbsolute(bool block, dynamic callback, int vid, int pid) + { + throw new NotImplementedException(); + } + public void SendKeyEvent(ushort code, int state, int device = 1) { var stroke = new Stroke(); diff --git a/C#/TestApp/Program.cs b/C#/TestApp/Program.cs index 3c823e7..f733fb4 100644 --- a/C#/TestApp/Program.cs +++ b/C#/TestApp/Program.cs @@ -33,7 +33,7 @@ class TestApp // //}), 0x413C, 0x2107); //}), 0x46D, 0xC52B); - //iw.SubscribeMouseMovement(false, new Action((x, y) => + //iw.SubscribeMouseMoveRelative(false, new Action((x, y) => //{ // Console.WriteLine($"Mouse Axis Value: x={x}, y={y}"); ////}), 0x46D, 0xC531); // G700s