> 文档中心 > Allwinner H313 实现APP 屏蔽鼠标右键功能

Allwinner H313 实现APP 屏蔽鼠标右键功能

--- a/android/frameworks/native/services/inputflinger/InputReader.cpp+++ b/android/frameworks/native/services/inputflinger/InputReader.cpp@@ -58,7 +58,7 @@ #include  #include  #include -+#include  #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))+{+      

丽江小吃城