summaryrefslogtreecommitdiffstats
path: root/libs/ui/InputManager.cpp
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-06-22 01:27:15 -0700
committerJeff Brown <jeffbrown@google.com>2010-06-28 19:10:54 -0700
commit50de30a5230dd15326f8bcbb4beaf617bca265e2 (patch)
tree08220f1667205b8ccd2891ab9eda6276c91571c7 /libs/ui/InputManager.cpp
parenta84687252b1d344f244bf93771d2acd7055d253e (diff)
downloadframeworks_native-50de30a5230dd15326f8bcbb4beaf617bca265e2.zip
frameworks_native-50de30a5230dd15326f8bcbb4beaf617bca265e2.tar.gz
frameworks_native-50de30a5230dd15326f8bcbb4beaf617bca265e2.tar.bz2
Native input event dispatching.
Target identification is now fully native. Fixed a couple of minor issues related to input injection. Native input enabled by default, can be disabled by setting WindowManagerPolicy.ENABLE_NATIVE_INPUT_DISPATCH to false. Change-Id: I7edf66ed3e987cc9306ad4743ac57a116af452ff
Diffstat (limited to 'libs/ui/InputManager.cpp')
-rw-r--r--libs/ui/InputManager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ui/InputManager.cpp b/libs/ui/InputManager.cpp
index 32c58b4..e1d15a4 100644
--- a/libs/ui/InputManager.cpp
+++ b/libs/ui/InputManager.cpp
@@ -85,6 +85,10 @@ int32_t InputManager::injectInputEvent(const InputEvent* event,
return mDispatcher->injectInputEvent(event, injectorPid, injectorUid, sync, timeoutMillis);
}
+void InputManager::preemptInputDispatch() {
+ mDispatcher->preemptInputDispatch();
+}
+
void InputManager::getInputConfiguration(InputConfiguration* outConfiguration) const {
mReader->getCurrentInputConfiguration(outConfiguration);
}