From b53f48cfec64830fa506267487a1037d27acb474 Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Wed, 7 Jun 2017 10:00:30 -0400 Subject: Touch input support for Windows Had to add some logic to avoid touch and mouse cross-talk, because (at least on my laptop), the touch screen generates both kinds of events. This seems really useful [1] for the many [2] Skia developers with touch-enabled Windows devices. ---------- 1: No, not really. 2: N = 1? Bug: skia: Change-Id: Ib888bf4198f2cc0a29a31581ec4b64d3d9008c33 Reviewed-on: https://skia-review.googlesource.com/18920 Reviewed-by: Yuqian Li Commit-Queue: Brian Osman --- include/views/SkTouchGesture.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/views') diff --git a/include/views/SkTouchGesture.h b/include/views/SkTouchGesture.h index 6776de7267..faadfc1b3d 100644 --- a/include/views/SkTouchGesture.h +++ b/include/views/SkTouchGesture.h @@ -39,6 +39,7 @@ public: bool isActive() { return fFlinger.isActive(); } void stop() { fFlinger.stop(); } + bool isBeingTouched() { return kEmpty_State != fState; } const SkMatrix& localM(); const SkMatrix& globalM() const { return fGlobalM; } -- cgit v1.2.3