diff options
| author | Prashant Malani <pmalani@google.com> | 2015-12-08 03:02:16 -0800 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2015-12-08 03:02:16 -0800 |
| commit | 3e5f615800c37b8ba2af409c7d9f775b617e9a44 (patch) | |
| tree | 229ade2d818f5179499468f8d6a0083d8c2df90f /core/java/android/view/InputDevice.java | |
| parent | ed6c8cd6ca377ba51243c70844c6dd074abbd0fc (diff) | |
| parent | 54909b8e6b45c913081df54496423bb35bd8955c (diff) | |
Merge "Add rotary encoder input source" into cw-e-dev am: 487f0d3d15 am: 6344cb8144 am: 3ebd5ceb90
am: 54909b8e6b
* commit '54909b8e6b45c913081df54496423bb35bd8955c':
Add rotary encoder input source
Diffstat (limited to 'core/java/android/view/InputDevice.java')
| -rw-r--r-- | core/java/android/view/InputDevice.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/view/InputDevice.java b/core/java/android/view/InputDevice.java index bae51d3b9d1f..46b9a4694d9d 100644 --- a/core/java/android/view/InputDevice.java +++ b/core/java/android/view/InputDevice.java @@ -256,6 +256,15 @@ public final class InputDevice implements Parcelable { public static final int SOURCE_TOUCH_NAVIGATION = 0x00200000 | SOURCE_CLASS_NONE; /** + * The input source is a rotating encoder device whose motions should be interpreted as akin to + * those of a scroll wheel. + * + * @see #SOURCE_CLASS_NONE + * {@hide} + */ + public static final int SOURCE_ROTARY_ENCODER = 0x00400000 | SOURCE_CLASS_NONE; + + /** * The input source is a joystick. * (It may also be a {@link #SOURCE_GAMEPAD}). * |
