am 38bfa2f8: am 48f0460d: Merge "Refactor" into jb-mr1-dev
* commit '38bfa2f8685bc25ea39e881d322ae9f96e005847': Refactormain
commit
851956a616
|
@ -25,7 +25,7 @@
|
||||||
#include "proximity_info_state.h"
|
#include "proximity_info_state.h"
|
||||||
|
|
||||||
namespace latinime {
|
namespace latinime {
|
||||||
void ProximityInfoState::initInputParams(const int pointerId, const float maxLength,
|
void ProximityInfoState::initInputParams(const int pointerId, const float maxPointToKeyLength,
|
||||||
const ProximityInfo *proximityInfo, const int32_t *inputCodes, const int inputSize,
|
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 xCoordinates, const int *const yCoordinates, const int *const times,
|
||||||
const int *const pointerIds, const bool isGeometric) {
|
const int *const pointerIds, const bool isGeometric) {
|
||||||
|
@ -68,7 +68,7 @@ void ProximityInfoState::initInputParams(const int pointerId, const float maxLen
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mMaxPointToKeyLength = maxLength;
|
mMaxPointToKeyLength = maxPointToKeyLength;
|
||||||
///////////////////////
|
///////////////////////
|
||||||
// Setup touch points
|
// Setup touch points
|
||||||
mInputXs.clear();
|
mInputXs.clear();
|
||||||
|
@ -115,8 +115,8 @@ void ProximityInfoState::initInputParams(const int pointerId, const float maxLen
|
||||||
}
|
}
|
||||||
mPrimaryInputWord[inputSize] = 0;
|
mPrimaryInputWord[inputSize] = 0;
|
||||||
|
|
||||||
mTouchPositionCorrectionEnabled =
|
mTouchPositionCorrectionEnabled = mInputSize > 0 && mHasTouchPositionCorrectionData
|
||||||
mHasTouchPositionCorrectionData && xCoordinates && yCoordinates && !isGeometric;
|
&& xCoordinates && yCoordinates && !isGeometric;
|
||||||
for (int i = 0; i < mInputSize && mTouchPositionCorrectionEnabled; ++i) {
|
for (int i = 0; i < mInputSize && mTouchPositionCorrectionEnabled; ++i) {
|
||||||
const int *proximityChars = getProximityCharsAt(i);
|
const int *proximityChars = getProximityCharsAt(i);
|
||||||
const int primaryKey = proximityChars[0];
|
const int primaryKey = proximityChars[0];
|
||||||
|
|
|
@ -41,7 +41,7 @@ class ProximityInfoState {
|
||||||
/////////////////////////////////////////
|
/////////////////////////////////////////
|
||||||
// Defined in proximity_info_state.cpp //
|
// Defined in proximity_info_state.cpp //
|
||||||
/////////////////////////////////////////
|
/////////////////////////////////////////
|
||||||
void initInputParams(const int pointerId, const float maxLength,
|
void initInputParams(const int pointerId, const float maxPointToKeyLength,
|
||||||
const ProximityInfo *proximityInfo, const int32_t *inputCodes, const int inputSize,
|
const ProximityInfo *proximityInfo, const int32_t *inputCodes, const int inputSize,
|
||||||
const int *xCoordinates, const int *yCoordinates, const int *const times,
|
const int *xCoordinates, const int *yCoordinates, const int *const times,
|
||||||
const int *const pointerIds, const bool isGeometric);
|
const int *const pointerIds, const bool isGeometric);
|
||||||
|
|
Loading…
Reference in New Issue