|
@@ -38,7 +38,7 @@ namespace bbiwarg.Detectors.TouchDetection
|
|
|
{
|
|
|
//correct touchEvent position
|
|
|
Vector2D direction = finger.Direction;
|
|
|
- Vector2D tep = (tipPoint + Constants.TouchEventTipCorrectionFactor * direction).moveInBound(Vector2D.Zero, depthImage.BottomRight, direction.getInverse());
|
|
|
+ Vector2D tep = (tipPoint + Constants.TouchEventTipCorrectionFactor * direction.getInverse()).moveInBound(Vector2D.Zero, depthImage.BottomRight, direction);
|
|
|
|
|
|
outputImage.fillCircle(tep.IntX, tep.IntY, 5, Constants.TouchEventDetectedColor);
|
|
|
TouchEvent touchEvent = new TouchEvent(tep, floodValue, finger);
|