summaryrefslogtreecommitdiffstats
path: root/libs/ui/Input.cpp
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-07-16 09:12:29 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-07-16 09:12:29 -0700
commit781d34747941f3534b2a985ff57368ad89855d7d (patch)
treed7a87b96737fa8dfe18bb3d2b2985a77898123c2 /libs/ui/Input.cpp
parentfb4e1e24a93c7e6bc0fcdb3f5cfadfbc19503cd8 (diff)
parent9c37e5add9d7678a29b4e0d1e178fe78a13db961 (diff)
downloadframeworks_base-781d34747941f3534b2a985ff57368ad89855d7d.zip
frameworks_base-781d34747941f3534b2a985ff57368ad89855d7d.tar.gz
frameworks_base-781d34747941f3534b2a985ff57368ad89855d7d.tar.bz2
am 9c37e5ad: am 75a91389: Merge "Implement native key pre-dispatching to IMEs." into gingerbread
Merge commit '9c37e5add9d7678a29b4e0d1e178fe78a13db961' * commit '9c37e5add9d7678a29b4e0d1e178fe78a13db961': Implement native key pre-dispatching to IMEs.
Diffstat (limited to 'libs/ui/Input.cpp')
-rw-r--r--libs/ui/Input.cpp17
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(