aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/event
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-03-05 19:56:40 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-05 19:56:40 -0800
commit21ac406d9f2364f46808c56c7337d5a132a7e4e0 (patch)
tree22519679355961b8ee7a4c11acfe6c5708f89854 /java/src/com/android/inputmethod/event
parent4487477d271cde53f054db178cf2172483afd7db (diff)
parent505453093443ce60ee4366e1343098a0e3244d36 (diff)
downloadlatinime-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')
-rw-r--r--java/src/com/android/inputmethod/event/InputTransaction.java15
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;
}