Fix mouse clicks on LG devices

Use default values (0) for some fields of PointerCoords so that mouse
clicks work correctly on LG devices.

Fixes <https://github.com/Genymobile/scrcpy/issues/18>.
This commit is contained in:
Romain Vimont 2018-03-11 14:11:43 +01:00
parent dac7196bd6
commit c075ad0a1e

View file

@ -39,10 +39,6 @@ public class EventController {
coords.orientation = 0; coords.orientation = 0;
coords.pressure = 1; coords.pressure = 1;
coords.size = 1; coords.size = 1;
coords.toolMajor = 1;
coords.toolMinor = 1;
coords.touchMajor = 1;
coords.touchMinor = 1;
} }
private void setPointerCoords(Point point) { private void setPointerCoords(Point point) {