<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Implementation of Middle click in BLE hid mouse</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53978/implementation-of-middle-click-in-ble-hid-mouse</link><description>Hello, 
 I would like to know how to implement middle button click in hid mouse, by middle button click i am referring to scroll wheel click and the function associated with it. i am using a nrf5 sdk 15.3. we already implemented left click, right click</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Nov 2019 04:53:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53978/implementation-of-middle-click-in-ble-hid-mouse" /><item><title>RE: Implementation of Middle click in BLE hid mouse</title><link>https://devzone.nordicsemi.com/thread/220208?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 04:53:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a47982d-ec59-4ef8-83fd-ec79e02a2a8a</guid><dc:creator>Yadhu KP</dc:creator><description>&lt;p&gt;&amp;nbsp;the answer i was looking for was,&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;uint8_t buffer[3];&lt;/p&gt;
&lt;p&gt;buffer[0] = x;&amp;nbsp;&lt;br /&gt; buffer[1] = y;&amp;nbsp;&lt;br /&gt; buffer[2] = z;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ble_hids_inp_rep_send(&amp;amp;m_hids,INPUT_REP_BUTTONS_INDEX, INPUT_REP_BUTTONS_LEN, buffer,m_conn_handle);&lt;/p&gt;
&lt;p&gt;in this&amp;nbsp;&lt;/p&gt;
&lt;p&gt;x=1,y=0,z=0 -&amp;gt; left click&lt;/p&gt;
&lt;p&gt;&lt;span&gt;x=2,y=0,z=0 -&amp;gt; right click&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;x=4,y=0,z=0 -&amp;gt; middle click&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;NOTE: THIS IS HID MOUSE&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementation of Middle click in BLE hid mouse</title><link>https://devzone.nordicsemi.com/thread/218445?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 08:37:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1efcef25-22e0-497e-95d0-320e67342fa3</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you using the ble_app_hids_mouse example as a starting point?&lt;/p&gt;
&lt;p&gt;The descriptor in this example is already setting up 5 buttons, button 1-5.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As you can see &lt;a href="https://www.microchip.com/forums/m391435.aspx"&gt;here&lt;/a&gt; button 1-5 corresponds to the Left, Right, Middle, Back and Forward buttons on the mouse.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In other words the SDK example should already support the middle button.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>