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:
parent
dac7196bd6
commit
c075ad0a1e
1 changed files with 0 additions and 4 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue