From 0e8852766d2cc0ef82ed0846a4cae55ead01fdbf Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Thu, 15 Jul 2010 17:44:53 -0700 Subject: Implement native key pre-dispatching to IMEs. This significantly re-works the native key dispatching code to allow events to be pre-dispatched to the current IME before being processed by native code. It introduces one new public API, which must be called after retrieving an event if the app wishes for it to be pre-dispatched. Currently the native code will only do pre-dispatching of system keys, to avoid significant overhead for gaming input. This should be improved to be smarted, filtering for only keys that the IME is interested in. Unfortunately IMEs don't currently provide this information. :p Change-Id: Ic1c7aeec8b348164957f2cd88119eb5bd85c2a9f --- include/ui/Input.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/ui/Input.h') diff --git a/include/ui/Input.h b/include/ui/Input.h index f06988832d..d9b109197c 100644 --- a/include/ui/Input.h +++ b/include/ui/Input.h @@ -152,6 +152,7 @@ public: protected: void initialize(int32_t deviceId, int32_t source); + void initialize(const InputEvent& from); private: int32_t mDeviceId; @@ -202,6 +203,7 @@ public: int32_t repeatCount, nsecs_t downTime, nsecs_t eventTime); + void initialize(const KeyEvent& from); private: int32_t mAction; -- cgit v1.2.3-59-g8ed1b