diff options
author | 2011-10-05 06:37:34 -0700 | |
---|---|---|
committer | 2011-10-05 06:37:34 -0700 | |
commit | 5e458b8e74bbc789b80b4fc567f426cfa5c63426 (patch) | |
tree | 4b8de4b71acbda214a89afe5e7f12dc6354e8f00 /native/src/correction_state.h | |
parent | 30d24d8d40cef27240152dfbdea801b2a28552d8 (diff) | |
parent | e4ba822cc6959490868fd8868ffad1c4e9b23992 (diff) | |
download | latinime-5e458b8e74bbc789b80b4fc567f426cfa5c63426.tar.gz latinime-5e458b8e74bbc789b80b4fc567f426cfa5c63426.tar.xz latinime-5e458b8e74bbc789b80b4fc567f426cfa5c63426.zip |
am e4ba822c: Promote touches in hit box according to the distance from sweet spot
* commit 'e4ba822cc6959490868fd8868ffad1c4e9b23992':
Promote touches in hit box according to the distance from sweet spot
Diffstat (limited to 'native/src/correction_state.h')
-rw-r--r-- | native/src/correction_state.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/native/src/correction_state.h b/native/src/correction_state.h index a8ee82acd..fff5cd578 100644 --- a/native/src/correction_state.h +++ b/native/src/correction_state.h @@ -29,9 +29,8 @@ struct CorrectionState { uint16_t mChildCount; uint8_t mInputIndex; - uint8_t mEquivalentCharStrongCount; - uint8_t mEquivalentCharNormalCount; - uint8_t mEquivalentCharWeakCount; + int32_t mSumOfDistance; + uint8_t mEquivalentCharCount; uint8_t mProximityCount; uint8_t mTransposedCount; uint8_t mExcessiveCount; @@ -66,9 +65,8 @@ inline static void initCorrectionState(CorrectionState *state, const int rootPos state->mExcessivePos = -1; state->mSkipPos = -1; - state->mEquivalentCharStrongCount = 0; - state->mEquivalentCharNormalCount = 0; - state->mEquivalentCharWeakCount = 0; + state->mSumOfDistance = 0; + state->mEquivalentCharCount = 0; state->mProximityCount = 0; state->mTransposedCount = 0; state->mExcessiveCount = 0; |