d0cf5da20d
Sets UIPinchGestureRecognizer and UISwipeGestureRecognizers and passes the result down to the sk_app::Window. To simplify detection, swipes take precedence over pans, and pans require a single touch. This is less flexible for the app, but in most cases I think is what we want. Bug: skia:8737 Change-Id: Ib031b6ad465d3a353da29d7e0b48a666d4ff8b9a Reviewed-on: https://skia-review.googlesource.com/c/skia/+/239776 Commit-Queue: Jim Van Verth <jvanverth@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
15 lines
407 B
C++
15 lines
407 B
C++
// Copyright 2019 Google LLC.
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
#ifndef skui_inputstate_DEFINED
|
|
#define skui_inputstate_DEFINED
|
|
namespace skui {
|
|
enum class InputState {
|
|
kDown,
|
|
kUp,
|
|
kMove, // only valid for mouse
|
|
kRight, // only valid for fling
|
|
kLeft, // only valid for fling
|
|
};
|
|
}
|
|
#endif // skui_inputstate_DEFINED
|