--- a/android/frameworks/native/services/inputflinger/InputReader.cpp
+++ b/android/frameworks/native/services/inputflinger/InputReader.cpp
@@ -58,7 +58,7 @@
#include <input/Keyboard.h>
#include <input/VirtualKeyMap.h>
#include <statslog.h>
-
+#include <cutils/properties.h>
#define INDENT " "
#define INDENT2 " "
#define INDENT3 " "
@@ -1348,9 +1348,19 @@ uint32_t CursorButtonAccumulator::getButtonState() const {
if (mBtnLeft) {
result |= AMOTION_EVENT_BUTTON_PRIMARY;
}
- if (mBtnRight) {
+ if (mBtnRight) { //Sam Jiang
#if defined(TARGET_PLATFORM_HOMLET) || defined(TARGET_PLATFORM_AUTO)
- result |= AMOTION_EVENT_BUTTON_BACK;
+ ALOGD("Will Switch Mouse Right Function");
+ if (property_get_bool("persist.sys.disable_btn_right", false))
+ {
+
Allwinner H313 实现APP 屏蔽鼠标右键功能
最新推荐文章于 2023-04-21 15:38:12 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)