android7.1.2鼠标右击实现返回功能
环境:android7.1.2、sc60核心板修改文件路径为frameworks/native/services/inputflinger/InputReader.cpp修改内容如下:diff --git a/frameworks/native/services/inputflinger/InputReader.cpold mode 100644new mode 100755index b9be6
·
环境:android7.1.2、sc60核心板
修改文件路径为
frameworks/native/services/inputflinger/InputReader.cpp
修改内容如下:
diff --git a/frameworks/native/services/inputflinger/InputReader.cp
old mode 100644
new mode 100755
index b9be675..94df6a3
--- a/frameworks/native/services/inputflinger/InputReader.cpp
+++ b/frameworks/native/services/inputflinger/InputReader.cpp
@@ -1285,7 +1285,8 @@ uint32_t CursorButtonAccumulator::getButtonSt
result |= AMOTION_EVENT_BUTTON_PRIMARY;
}
if (mBtnRight) {
- result |= AMOTION_EVENT_BUTTON_SECONDARY;
+ //result |= AMOTION_EVENT_BUTTON_SECONDARY;
+ result |= AMOTION_EVENT_BUTTON_BACK;
}
if (mBtnMiddle) {
result |= AMOTION_EVENT_BUTTON_TERTIARY;
直接将result |= AMOTION_EVENT_BUTTON_SECONDARY; 修改成 result |= AMOTION_EVENT_BUTTON_BACK;
每天进步一点点,点关注不迷路。
更多推荐
已为社区贡献8条内容
所有评论(0)