summaryrefslogtreecommitdiff
path: root/core/java/android/view/InputDevice.java
diff options
context:
space:
mode:
authorPrashant Malani <pmalani@google.com>2015-12-08 01:43:27 +0000
committerandroid-build-merger <android-build-merger@google.com>2015-12-08 01:43:27 +0000
commit54909b8e6b45c913081df54496423bb35bd8955c (patch)
tree15a114e8ecd2be7d5dc5ffca4707ff6ca6414b50 /core/java/android/view/InputDevice.java
parentd7b61ca6620565cad00de91284ecdfb93ddfbd50 (diff)
parent3ebd5ceb90137572262efeda12cdce4b503ddded (diff)
Merge "Add rotary encoder input source" into cw-e-dev am: 487f0d3d15 am: 6344cb8144
am: 3ebd5ceb90 * commit '3ebd5ceb90137572262efeda12cdce4b503ddded': Add rotary encoder input source
Diffstat (limited to 'core/java/android/view/InputDevice.java')
-rw-r--r--core/java/android/view/InputDevice.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/view/InputDevice.java b/core/java/android/view/InputDevice.java
index cc4598d16de9..5592f7a42bac 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}).
*