diff options
author | Brian Osman <brianosman@google.com> | 2017-06-07 10:00:30 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-06-07 14:27:09 +0000 |
commit | b53f48cfec64830fa506267487a1037d27acb474 (patch) | |
tree | c7f108034ba97437371fce51c52d90970cf98156 /include/views | |
parent | 2e425ebd95dd97f788f7f8a3b8529d77d69b4f61 (diff) |
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 <liyuqian@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'include/views')
-rw-r--r-- | include/views/SkTouchGesture.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |