当前位置: 首页> 娱乐> 八卦 > 兰州网络公司有哪些_深圳今日重大新闻_体验式营销经典案例_广州谷歌seo公司

兰州网络公司有哪些_深圳今日重大新闻_体验式营销经典案例_广州谷歌seo公司

时间:2025/8/2 19:19:09来源:https://blog.csdn.net/u013970897/article/details/146064824 浏览次数:0次
兰州网络公司有哪些_深圳今日重大新闻_体验式营销经典案例_广州谷歌seo公司

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;
关键字:兰州网络公司有哪些_深圳今日重大新闻_体验式营销经典案例_广州谷歌seo公司

版权声明:

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

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

责任编辑: