|
|
@ -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();
|
|
|
|