<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processors中的主题 Re: How to configure the Mouse button action in Android 11</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-configure-the-Mouse-button-action-in-Android-11/m-p/2201512#M242028</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;This could be done with two different ways: 1. framework layer, 2 kernel&amp;nbsp;event system.&lt;/P&gt;
&lt;P&gt;For such remapping on aosp framework, you may need to modify &lt;STRONG&gt;synthesizeButtonKeys &lt;/STRONG&gt;function in&amp;nbsp;&lt;A href="https://android.googlesource.com/platform/frameworks/base/+/a45746e/services/input/InputReader.cpp," target="_blank"&gt;https://android.googlesource.com/platform/frameworks/base/+/a45746e/services/input/InputReader.cpp,&lt;/A&gt;&amp;nbsp;filter the mouse &lt;SPAN&gt;MOUSE_SECONDARY&amp;nbsp;&lt;/SPAN&gt;event , mapping it to KEYCODE_BACK.&lt;/P&gt;
&lt;P&gt;For kernel event system, you need write a service to map&amp;nbsp;BTN_RIGHT to&amp;nbsp;KEY_BACK, then the aosp can always get&amp;nbsp;KEY_BACK event while you click mouse&amp;nbsp;BTN_RIGHT.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
    <pubDate>Mon, 10 Nov 2025 05:59:20 GMT</pubDate>
    <dc:creator>Zhiming_Liu</dc:creator>
    <dc:date>2025-11-10T05:59:20Z</dc:date>
    <item>
      <title>How to configure the Mouse button action in Android 11</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-configure-the-Mouse-button-action-in-Android-11/m-p/2200540#M241986</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm using an imx8mp custom board running Android 11. I need to change the MOUSE_SECONDARY button as BACK. I modified the .kl file to change the action ofMOUSE_SECONDARY, but it's not working, is there any other way to change the MOUSE_SECONDARY action?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Subash P.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 05:35:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-configure-the-Mouse-button-action-in-Android-11/m-p/2200540#M241986</guid>
      <dc:creator>subash_p</dc:creator>
      <dc:date>2025-11-07T05:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure the Mouse button action in Android 11</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-configure-the-Mouse-button-action-in-Android-11/m-p/2201512#M242028</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;This could be done with two different ways: 1. framework layer, 2 kernel&amp;nbsp;event system.&lt;/P&gt;
&lt;P&gt;For such remapping on aosp framework, you may need to modify &lt;STRONG&gt;synthesizeButtonKeys &lt;/STRONG&gt;function in&amp;nbsp;&lt;A href="https://android.googlesource.com/platform/frameworks/base/+/a45746e/services/input/InputReader.cpp," target="_blank"&gt;https://android.googlesource.com/platform/frameworks/base/+/a45746e/services/input/InputReader.cpp,&lt;/A&gt;&amp;nbsp;filter the mouse &lt;SPAN&gt;MOUSE_SECONDARY&amp;nbsp;&lt;/SPAN&gt;event , mapping it to KEYCODE_BACK.&lt;/P&gt;
&lt;P&gt;For kernel event system, you need write a service to map&amp;nbsp;BTN_RIGHT to&amp;nbsp;KEY_BACK, then the aosp can always get&amp;nbsp;KEY_BACK event while you click mouse&amp;nbsp;BTN_RIGHT.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 05:59:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-configure-the-Mouse-button-action-in-Android-11/m-p/2201512#M242028</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2025-11-10T05:59:20Z</dc:date>
    </item>
  </channel>
</rss>

