diff options
| author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-08 16:17:50 +0000 |
|---|---|---|
| committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-08 16:17:50 +0000 |
| commit | 4d5c26de0a24f86c37c1da8b0e30d11a550ea67b (patch) | |
| tree | ae6412d266668e9f7ca91e9ef56d65ddb3b6e9ac /samplecode/SampleRotateCircles.cpp | |
| parent | 9aaf36de60c2a2e7a6b441bb7db9521a4fd59e08 (diff) | |
pass modifier keys to click events (e.g. control | shift etc.)
Review URL: https://codereview.appspot.com/7062054
git-svn-id: http://skia.googlecode.com/svn/trunk@7082 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SampleRotateCircles.cpp')
| -rw-r--r-- | samplecode/SampleRotateCircles.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/samplecode/SampleRotateCircles.cpp b/samplecode/SampleRotateCircles.cpp index 5bac6cf127..d16d07f72c 100644 --- a/samplecode/SampleRotateCircles.cpp +++ b/samplecode/SampleRotateCircles.cpp @@ -329,13 +329,14 @@ protected: MyClick(SkView* target, int index) : Click(target), fIndex(index) {} }; - virtual SkView::Click* onFindClickHandler(SkScalar x, SkScalar y) { + virtual SkView::Click* onFindClickHandler(SkScalar x, SkScalar y, + unsigned modi) SK_OVERRIDE { for (size_t i = 0; i < SK_ARRAY_COUNT(fPts); ++i) { if (hittest(fPts[i], x, y)) { return new MyClick(this, i); } } - return this->INHERITED::onFindClickHandler(x, y); + return this->INHERITED::onFindClickHandler(x, y, modi); } virtual bool onClick(Click* click) { |
