您的位置:首页 > 游戏 > 游戏 > 广西壮族自治区成立时间_网页游戏网站有哪些_还有哪些平台能免费营销产品_百度小说

广西壮族自治区成立时间_网页游戏网站有哪些_还有哪些平台能免费营销产品_百度小说

2025/3/14 23:16:08 来源:https://blog.csdn.net/u013970897/article/details/146064824  浏览:    关键词:广西壮族自治区成立时间_网页游戏网站有哪些_还有哪些平台能免费营销产品_百度小说
广西壮族自治区成立时间_网页游戏网站有哪些_还有哪些平台能免费营销产品_百度小说

MTK Android12 修改鼠标右键为返回键

  • 需求
  • 解决

需求

项目中未添加TP功能,需要用鼠标进行操作,将鼠标右键赋予返回功能。

解决

路径:frameworks/native/services/inputflinger/reader/mapper/accumulator/CursorButtonAccumulator.cpp
diff --git a/frameworks/native/services/inputflinger/reader/mapper/accumulator/CursorButtonAccumulator.cpp b/frameworks/native/services/inputflinger/reader/mapper/accumulator/CursorButtonAccumulator.cpp
index 2d7d73b..d6fdce5 100644 (file)
--- a/frameworks/native/services/inputflinger/reader/mapper/accumulator/CursorButtonAccumulator.cpp
+++ b/frameworks/native/services/inputflinger/reader/mapper/accumulator/CursorButtonAccumulator.cpp
@@ -84,7 +84,8 @@ uint32_t CursorButtonAccumulator::getButtonState() const {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;

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com