Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
342ea3d3
Commit
342ea3d3
authored
12 years ago
by
Tadashi G. Takaoka
Committed by
Android (Google) Code Review
12 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Pass MotionEvent to PointerTracker"
parents
a8c9946b
3314d38d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java
+4
-1
4 additions, 1 deletion
...c/com/android/inputmethod/keyboard/LatinKeyboardView.java
java/src/com/android/inputmethod/keyboard/PointerTracker.java
+2
-2
2 additions, 2 deletions
.../src/com/android/inputmethod/keyboard/PointerTracker.java
with
6 additions
and
3 deletions
java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java
+
4
−
1
View file @
342ea3d3
...
@@ -762,15 +762,18 @@ public class LatinKeyboardView extends KeyboardView implements PointerTracker.Ke
...
@@ -762,15 +762,18 @@ public class LatinKeyboardView extends KeyboardView implements PointerTracker.Ke
final
PointerTracker
tracker
=
PointerTracker
.
getPointerTracker
(
final
PointerTracker
tracker
=
PointerTracker
.
getPointerTracker
(
pointerId
,
this
);
pointerId
,
this
);
final
int
px
,
py
;
final
int
px
,
py
;
final
MotionEvent
motionEvent
;
if
(
mMoreKeysPanel
!=
null
if
(
mMoreKeysPanel
!=
null
&&
tracker
.
mPointerId
==
mMoreKeysPanelPointerTrackerId
)
{
&&
tracker
.
mPointerId
==
mMoreKeysPanelPointerTrackerId
)
{
px
=
mMoreKeysPanel
.
translateX
((
int
)
me
.
getX
(
i
));
px
=
mMoreKeysPanel
.
translateX
((
int
)
me
.
getX
(
i
));
py
=
mMoreKeysPanel
.
translateY
((
int
)
me
.
getY
(
i
));
py
=
mMoreKeysPanel
.
translateY
((
int
)
me
.
getY
(
i
));
motionEvent
=
null
;
}
else
{
}
else
{
px
=
(
int
)
me
.
getX
(
i
);
px
=
(
int
)
me
.
getX
(
i
);
py
=
(
int
)
me
.
getY
(
i
);
py
=
(
int
)
me
.
getY
(
i
);
motionEvent
=
me
;
}
}
tracker
.
onMoveEvent
(
px
,
py
,
eventTime
);
tracker
.
onMoveEvent
(
px
,
py
,
eventTime
,
motionEvent
);
if
(
ENABLE_USABILITY_STUDY_LOG
)
{
if
(
ENABLE_USABILITY_STUDY_LOG
)
{
final
float
pointerSize
=
me
.
getSize
(
i
);
final
float
pointerSize
=
me
.
getSize
(
i
);
final
float
pointerPressure
=
me
.
getPressure
(
i
);
final
float
pointerPressure
=
me
.
getPressure
(
i
);
...
...
This diff is collapsed.
Click to expand it.
java/src/com/android/inputmethod/keyboard/PointerTracker.java
+
2
−
2
View file @
342ea3d3
...
@@ -473,7 +473,7 @@ public class PointerTracker {
...
@@ -473,7 +473,7 @@ public class PointerTracker {
onUpEvent
(
x
,
y
,
eventTime
);
onUpEvent
(
x
,
y
,
eventTime
);
break
;
break
;
case
MotionEvent
.
ACTION_MOVE
:
case
MotionEvent
.
ACTION_MOVE
:
onMoveEvent
(
x
,
y
,
eventTime
);
onMoveEvent
(
x
,
y
,
eventTime
,
null
);
break
;
break
;
case
MotionEvent
.
ACTION_CANCEL
:
case
MotionEvent
.
ACTION_CANCEL
:
onCancelEvent
(
x
,
y
,
eventTime
);
onCancelEvent
(
x
,
y
,
eventTime
);
...
@@ -553,7 +553,7 @@ public class PointerTracker {
...
@@ -553,7 +553,7 @@ public class PointerTracker {
mIsInSlidingKeyInput
=
true
;
mIsInSlidingKeyInput
=
true
;
}
}
public
void
onMoveEvent
(
int
x
,
int
y
,
long
eventTime
)
{
public
void
onMoveEvent
(
int
x
,
int
y
,
long
eventTime
,
MotionEvent
me
)
{
if
(
DEBUG_MOVE_EVENT
)
if
(
DEBUG_MOVE_EVENT
)
printTouchEvent
(
"onMoveEvent:"
,
x
,
y
,
eventTime
);
printTouchEvent
(
"onMoveEvent:"
,
x
,
y
,
eventTime
);
if
(
mKeyAlreadyProcessed
)
if
(
mKeyAlreadyProcessed
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment