From 15ba7a30e910966585990542be537d088f27da6d Mon Sep 17 00:00:00 2001 From: evilC Date: Sun, 25 Mar 2018 16:35:23 +0100 Subject: [PATCH] Rename some endpoints --- C#/AutoHotInterception/InterceptionWrapper.cs | 12 +++++++++++- C#/TestApp/Program.cs | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) 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