From 918e922e40d32eb8a71dc8695ccb5f76d2fbec61 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 16 Jun 2018 15:14:16 -0700 Subject: [PATCH] Avoid processing mouse move history --- app/src/main/java/com/limelight/Game.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/src/main/java/com/limelight/Game.java b/app/src/main/java/com/limelight/Game.java index d4cfabd4..093e804e 100644 --- a/app/src/main/java/com/limelight/Game.java +++ b/app/src/main/java/com/limelight/Game.java @@ -1019,12 +1019,7 @@ public class Game extends Activity implements SurfaceHolder.Callback, lastMouseY = (int)event.getY(); } else { - // First process the history - for (int i = 0; i < event.getHistorySize(); i++) { - updateMousePosition((int)event.getHistoricalX(i), (int)event.getHistoricalY(i)); - } - - // Now process the current values + // Don't process the history. We just want the current position now. updateMousePosition((int)event.getX(), (int)event.getY()); }