Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 780d668b authored by Daniel Sandler's avatar Daniel Sandler
Browse files

Pressure info in captured gestures.

Change-Id: If72f8d5ea0cb748f60357441153d5fb8ac1b8143
parent 3380534a
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -63,11 +63,15 @@ public class GestureRecorder {
                }
            }
            public String toJson() {
                return String.format("{\"type\":\"motion\", \"time\":%d, \"action\":\"%s\", \"x\":%.2f, \"y\":%.2f}",
                return String.format(
                        ("{\"type\":\"motion\", \"time\":%d, \"action\":\"%s\", "
                            + "\"x\":%.2f, \"y\":%.2f, \"s\":%.2f, \"p\":%.2f}"),
                        this.time,
                        actionName(this.event.getAction()),
                        this.event.getRawX(),
                        this.event.getRawY()
                        this.event.getRawY(),
                        this.event.getSize(),
                        this.event.getPressure()
                        );
            }
        }