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.
This commit is contained in:
commit
a2c4654c2f
@ -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;
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user