summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/InputManager.java
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-12-23 17:50:18 -0800
committerJeff Brown <jeffbrown@google.com>2010-12-29 13:19:53 -0800
commit83c09685f2e62bc3cf7e71bc61d903f4b9ccaeb4 (patch)
treec8bc2824e0d2e2b353b3d16ecf5836ab8fd9e67c /services/java/com/android/server/InputManager.java
parentdd830c21149c336139b28560c0e6fba9f3d0e0fc (diff)
Add initial support for cursor-based pointing devices.
Some parts stubbed out but you can plug in a mouse and move a green cursor around to interact with the UI. Change-Id: I80d597a7f11d3bd92041890f74b3c77326975e6e
Diffstat (limited to 'services/java/com/android/server/InputManager.java')
-rw-r--r--services/java/com/android/server/InputManager.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/services/java/com/android/server/InputManager.java b/services/java/com/android/server/InputManager.java
index 4c499cd56c8d..b5becb5c4405 100644
--- a/services/java/com/android/server/InputManager.java
+++ b/services/java/com/android/server/InputManager.java
@@ -32,6 +32,7 @@ import android.view.InputDevice;
import android.view.InputEvent;
import android.view.KeyEvent;
import android.view.Surface;
+import android.view.WindowManager;
import java.io.BufferedReader;
import java.io.File;
@@ -475,5 +476,13 @@ public class InputManager {
}
return result;
}
+
+ @SuppressWarnings("unused")
+ public int getPointerLayer() {
+ return mWindowManagerService.mPolicy.windowTypeToLayerLw(
+ WindowManager.LayoutParams.TYPE_DRAG)
+ * WindowManagerService.TYPE_LAYER_MULTIPLIER
+ + WindowManagerService.TYPE_LAYER_OFFSET;
+ }
}
}