Rename some endpoints

This commit is contained in:
evilC 2018-03-25 16:35:23 +01:00
parent e634f91115
commit 15ba7a30e9
2 changed files with 12 additions and 2 deletions

View File

@ -104,7 +104,12 @@ public class InterceptionWrapper : IDisposable
return true; 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; int id;
id = GetDeviceId(vid, pid, true); id = GetDeviceId(vid, pid, true);
@ -117,6 +122,11 @@ public class InterceptionWrapper : IDisposable
return true; 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) public void SendKeyEvent(ushort code, int state, int device = 1)
{ {
var stroke = new Stroke(); var stroke = new Stroke();

View File

@ -33,7 +33,7 @@ class TestApp
// //}), 0x413C, 0x2107); // //}), 0x413C, 0x2107);
//}), 0x46D, 0xC52B); //}), 0x46D, 0xC52B);
//iw.SubscribeMouseMovement(false, new Action<int, int>((x, y) => //iw.SubscribeMouseMoveRelative(false, new Action<int, int>((x, y) =>
//{ //{
// Console.WriteLine($"Mouse Axis Value: x={x}, y={y}"); // Console.WriteLine($"Mouse Axis Value: x={x}, y={y}");
////}), 0x46D, 0xC531); // G700s ////}), 0x46D, 0xC531); // G700s