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
48f0460d
Commit
48f0460d
authored
12 years ago
by
Satoshi Kataoka
Committed by
Android (Google) Code Review
12 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Refactor" into jb-mr1-dev
parents
5cc59616
233aad5e
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
native/jni/src/proximity_info_state.cpp
+4
-4
4 additions, 4 deletions
native/jni/src/proximity_info_state.cpp
native/jni/src/proximity_info_state.h
+1
-1
1 addition, 1 deletion
native/jni/src/proximity_info_state.h
with
5 additions
and
5 deletions
native/jni/src/proximity_info_state.cpp
+
4
−
4
View file @
48f0460d
...
...
@@ -25,7 +25,7 @@
#include
"proximity_info_state.h"
namespace
latinime
{
void
ProximityInfoState
::
initInputParams
(
const
int
pointerId
,
const
float
maxLength
,
void
ProximityInfoState
::
initInputParams
(
const
int
pointerId
,
const
float
max
PointToKey
Length
,
const
ProximityInfo
*
proximityInfo
,
const
int32_t
*
inputCodes
,
const
int
inputSize
,
const
int
*
const
xCoordinates
,
const
int
*
const
yCoordinates
,
const
int
*
const
times
,
const
int
*
const
pointerIds
,
const
bool
isGeometric
)
{
...
...
@@ -68,7 +68,7 @@ void ProximityInfoState::initInputParams(const int pointerId, const float maxLen
}
}
mMaxPointToKeyLength
=
maxLength
;
mMaxPointToKeyLength
=
max
PointToKey
Length
;
///////////////////////
// Setup touch points
mInputXs
.
clear
();
...
...
@@ -115,8 +115,8 @@ void ProximityInfoState::initInputParams(const int pointerId, const float maxLen
}
mPrimaryInputWord
[
inputSize
]
=
0
;
mTouchPositionCorrectionEnabled
=
mHasTouchPositionCorrectionData
&&
xCoordinates
&&
yCoordinates
&&
!
isGeometric
;
mTouchPositionCorrectionEnabled
=
mInputSize
>
0
&&
mHasTouchPositionCorrectionData
&&
xCoordinates
&&
yCoordinates
&&
!
isGeometric
;
for
(
int
i
=
0
;
i
<
mInputSize
&&
mTouchPositionCorrectionEnabled
;
++
i
)
{
const
int
*
proximityChars
=
getProximityCharsAt
(
i
);
const
int
primaryKey
=
proximityChars
[
0
];
...
...
This diff is collapsed.
Click to expand it.
native/jni/src/proximity_info_state.h
+
1
−
1
View file @
48f0460d
...
...
@@ -41,7 +41,7 @@ class ProximityInfoState {
/////////////////////////////////////////
// Defined in proximity_info_state.cpp //
/////////////////////////////////////////
void
initInputParams
(
const
int
pointerId
,
const
float
maxLength
,
void
initInputParams
(
const
int
pointerId
,
const
float
max
PointToKey
Length
,
const
ProximityInfo
*
proximityInfo
,
const
int32_t
*
inputCodes
,
const
int
inputSize
,
const
int
*
xCoordinates
,
const
int
*
yCoordinates
,
const
int
*
const
times
,
const
int
*
const
pointerIds
,
const
bool
isGeometric
);
...
...
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