From f7e8f405d5529c48522a21c190b3f3828b2074e6 Mon Sep 17 00:00:00 2001 From: "iwg..ic" Date: Wed, 20 Nov 2013 13:22:35 +0000 Subject: [PATCH] Add toString() method for TouchEvent git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10896 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/input/event/TouchEvent.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/engine/src/core/com/jme3/input/event/TouchEvent.java b/engine/src/core/com/jme3/input/event/TouchEvent.java index 61c3cf471..23038b99f 100644 --- a/engine/src/core/com/jme3/input/event/TouchEvent.java +++ b/engine/src/core/com/jme3/input/event/TouchEvent.java @@ -226,5 +226,12 @@ public class TouchEvent extends InputEvent { public void setScaleSpanInProgress(boolean scaleSpanInProgress) { this.scaleSpanInProgress = scaleSpanInProgress; } + + @Override + public String toString(){ + return "TouchEvent(PointerId="+pointerId+", Type="+type+ + ", X="+posX+", Y="+posY+", DX="+deltaX+", DY="+deltaY+ + ", ScaleSpan="+scaleSpan+", dScaleSpan="+deltaScaleSpan+")"; + } }