diff options
| author | Jeff Brown <jeffbrown@google.com> | 2010-06-22 01:27:15 -0700 |
|---|---|---|
| committer | Jeff Brown <jeffbrown@google.com> | 2010-06-28 19:10:54 -0700 |
| commit | 349703effce5acc53ed96f7ed8556131f0c65e18 (patch) | |
| tree | 359217d5076e3005c724b2117a59ffec81e7a83b /include/ui/InputManager.h | |
| parent | f2b544f5ae7676f7ab4cdf3379b2ed3c60a65def (diff) | |
| download | frameworks_base-349703effce5acc53ed96f7ed8556131f0c65e18.zip frameworks_base-349703effce5acc53ed96f7ed8556131f0c65e18.tar.gz frameworks_base-349703effce5acc53ed96f7ed8556131f0c65e18.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 'include/ui/InputManager.h')
| -rw-r--r-- | include/ui/InputManager.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/ui/InputManager.h b/include/ui/InputManager.h index 7509dd2..e755238 100644 --- a/include/ui/InputManager.h +++ b/include/ui/InputManager.h @@ -87,6 +87,14 @@ public: virtual int32_t injectInputEvent(const InputEvent* event, int32_t injectorPid, int32_t injectorUid, bool sync, int32_t timeoutMillis) = 0; + /* Preempts input dispatch in progress by making pending synchronous + * dispatches asynchronous instead. This method is generally called during a focus + * transition from one application to the next so as to enable the new application + * to start receiving input as soon as possible without having to wait for the + * old application to finish up. + */ + virtual void preemptInputDispatch() = 0; + /* Gets input device configuration. */ virtual void getInputConfiguration(InputConfiguration* outConfiguration) const = 0; @@ -130,6 +138,8 @@ public: virtual int32_t injectInputEvent(const InputEvent* event, int32_t injectorPid, int32_t injectorUid, bool sync, int32_t timeoutMillis); + virtual void preemptInputDispatch(); + virtual void getInputConfiguration(InputConfiguration* outConfiguration) const; virtual int32_t getScanCodeState(int32_t deviceId, int32_t deviceClasses, int32_t scanCode) const; |
