Plumb sendMousePosition() through to moonlight-common-c

This commit is contained in:
Cameron Gutman
2020-04-17 22:37:09 -07:00
parent 29bc3e022b
commit 6f79c52fc5
3 changed files with 15 additions and 0 deletions

View File

@@ -287,6 +287,13 @@ public class NvConnection {
MoonBridge.sendMouseMove(deltaX, deltaY);
}
}
public void sendMousePosition(short x, short y, short referenceWidth, short referenceHeight)
{
if (!isMonkey) {
MoonBridge.sendMousePosition(x, y, referenceWidth, referenceHeight);
}
}
public void sendMouseButtonDown(final byte mouseButton)
{

View File

@@ -239,6 +239,8 @@ public class MoonBridge {
public static native void sendMouseMove(short deltaX, short deltaY);
public static native void sendMousePosition(short x, short y, short referenceWidth, short referenceHeight);
public static native void sendMouseButton(byte buttonEvent, byte mouseButton);
public static native void sendMultiControllerInput(short controllerNumber,