mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-31 06:05:12 +00:00
Fix delta
This commit is contained in:
@@ -121,11 +121,11 @@ public class PresenterPlugin extends Plugin {
|
|||||||
if (np == null) {
|
if (np == null) {
|
||||||
np = new NetworkPacket(PACKET_TYPE_PRESENTER);
|
np = new NetworkPacket(PACKET_TYPE_PRESENTER);
|
||||||
} else {
|
} else {
|
||||||
xDelta += np.getInt("px");
|
xDelta += np.getInt("dx");
|
||||||
yDelta += np.getInt("px");
|
yDelta += np.getInt("dy");
|
||||||
}
|
}
|
||||||
np.set("px", xDelta);
|
np.set("dx", xDelta);
|
||||||
np.set("py", yDelta);
|
np.set("dy", yDelta);
|
||||||
device.sendPacket(np, NetworkPacket.PACKET_REPLACEID_PRESENTERPOINTER);
|
device.sendPacket(np, NetworkPacket.PACKET_REPLACEID_PRESENTERPOINTER);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user