Use the Point class from the framework

Replace our custom Point class by android.graphics.Point.
This commit is contained in:
Romain Vimont
2018-01-31 19:42:08 +01:00
parent b67907e24e
commit 73831a0837
4 changed files with 8 additions and 47 deletions

View File

@@ -1,5 +1,6 @@
package com.genymobile.scrcpy;
import android.graphics.Point;
import android.os.SystemClock;
import android.view.InputDevice;
import android.view.InputEvent;
@@ -47,8 +48,8 @@ public class EventController {
private void setPointerCoords(Point point) {
MotionEvent.PointerCoords coords = pointerCoords[0];
coords.x = point.getX();
coords.y = point.getY();
coords.x = point.x;
coords.y = point.y;
}
private void setScroll(int hScroll, int vScroll) {