解决了google键盘存在触摸识别误差问题
触摸一个键的顶部区域,却等效按下了改键上方的键。
该输入法目录下SkbContainer.java文件中 * For finger touch, user tends to press the bottom part of the target key,
* or he/she even presses the area out of it, so it is necessary to make a
* simple bias correction. If the input method runs on emulator, no bias
* correction will be used.
*/
private static final int Y_BIAS_CORRECTION = -10;
是为了让触摸时按键操作和视觉上的统一,所以设Y_BIAS_CORRECTION = -10,因为我们机器屏幕较大,做这种处理后反而变成了触摸误差,故Y轴校正可不要,改Y_BIAS_CORRECTION = 0解决。