diff options
author | 2014-03-05 19:56:40 -0800 | |
---|---|---|
committer | 2014-03-05 19:56:40 -0800 | |
commit | 21ac406d9f2364f46808c56c7337d5a132a7e4e0 (patch) | |
tree | 22519679355961b8ee7a4c11acfe6c5708f89854 /java/src/com/android/inputmethod/event/InputTransaction.java | |
parent | 4487477d271cde53f054db178cf2172483afd7db (diff) | |
parent | 505453093443ce60ee4366e1343098a0e3244d36 (diff) | |
download | latinime-21ac406d9f2364f46808c56c7337d5a132a7e4e0.tar.gz latinime-21ac406d9f2364f46808c56c7337d5a132a7e4e0.tar.xz latinime-21ac406d9f2364f46808c56c7337d5a132a7e4e0.zip |
am 50545309: Merge "[IL122] Put the code, x and y in the transaction"
* commit '505453093443ce60ee4366e1343098a0e3244d36':
[IL122] Put the code, x and y in the transaction
Diffstat (limited to 'java/src/com/android/inputmethod/event/InputTransaction.java')
-rw-r--r-- | java/src/com/android/inputmethod/event/InputTransaction.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/event/InputTransaction.java b/java/src/com/android/inputmethod/event/InputTransaction.java index 5e046a80e..d770c5af4 100644 --- a/java/src/com/android/inputmethod/event/InputTransaction.java +++ b/java/src/com/android/inputmethod/event/InputTransaction.java @@ -30,12 +30,25 @@ public class InputTransaction { public static final int SHIFT_UPDATE_LATER = 2; // Initial conditions + // If the key inserts a code point, mKeyCode is always equal to the code points. Otherwise, + // it's always a code that may not be a code point, typically a negative number. + public final int mKeyCode; + public final int mX; // Pressed x-coordinate, or one of Constants.*_COORDINATE + public final int mY; // Pressed y-coordinate, or one of Constants.*_COORDINATE + public final long mTimestamp; + public final int mSpaceState; public final int mShiftState; // Outputs private int mRequiredShiftUpdate = SHIFT_NO_UPDATE; - public InputTransaction(final int shiftState) { + public InputTransaction(final int keyCode, final int x, final int y, final long timestamp, + final int spaceState, final int shiftState) { + mKeyCode = keyCode; + mX = x; + mY = y; + mTimestamp = timestamp; + mSpaceState = spaceState; mShiftState = shiftState; } |