Skip to content

Commit

Permalink
Inject touch events with smallest detectable size
Browse files Browse the repository at this point in the history
A value of 1 means the "largest detectable size", a value of 0 means the
"smallest detectable size".

https://developer.android.com/reference/android/view/MotionEvent.PointerCoords#size
https://developer.android.com/reference/android/view/MotionEvent#AXIS_SIZE

Fixes #2125 <#2125>
  • Loading branch information
rom1v committed Mar 3, 2021
1 parent b16b65a commit 218636d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/main/java/com/genymobile/scrcpy/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private void initPointers() {

MotionEvent.PointerCoords coords = new MotionEvent.PointerCoords();
coords.orientation = 0;
coords.size = 1;
coords.size = 0;

pointerProperties[i] = props;
pointerCoords[i] = coords;
Expand Down

0 comments on commit 218636d

Please sign in to comment.