diff options
author | Dianne Hackborn <hackbod@google.com> | 2010-07-15 22:22:42 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-07-15 22:22:42 -0700 |
commit | 75a91389f1938214397aaee262f4136e6bb6b094 (patch) | |
tree | b9279c75bdd3d131cdb4f423b4f31f9363efd455 /libs | |
parent | 02c8730c1bf19daf48bec8c6995df676a00a73b1 (diff) | |
parent | 2c6081ce3593712f30dacd990a97209c791d6ced (diff) | |
download | frameworks_base-75a91389f1938214397aaee262f4136e6bb6b094.zip frameworks_base-75a91389f1938214397aaee262f4136e6bb6b094.tar.gz frameworks_base-75a91389f1938214397aaee262f4136e6bb6b094.tar.bz2 |
Merge "Implement native key pre-dispatching to IMEs." into gingerbread
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ui/Input.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libs/ui/Input.cpp b/libs/ui/Input.cpp index e5f014f..5253c72 100644 --- a/libs/ui/Input.cpp +++ b/libs/ui/Input.cpp @@ -18,6 +18,11 @@ void InputEvent::initialize(int32_t deviceId, int32_t source) { mSource = source; } +void InputEvent::initialize(const InputEvent& from) { + mDeviceId = from.mDeviceId; + mSource = from.mSource; +} + // class KeyEvent bool KeyEvent::hasDefaultAction(int32_t keyCode) { @@ -106,6 +111,18 @@ void KeyEvent::initialize( mEventTime = eventTime; } +void KeyEvent::initialize(const KeyEvent& from) { + InputEvent::initialize(from); + mAction = from.mAction; + mFlags = from.mFlags; + mKeyCode = from.mKeyCode; + mScanCode = from.mScanCode; + mMetaState = from.mMetaState; + mRepeatCount = from.mRepeatCount; + mDownTime = from.mDownTime; + mEventTime = from.mEventTime; +} + // class MotionEvent void MotionEvent::initialize( |