<?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>Is a custom HID gamepad possible WITHOUT bluetooth?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96049/is-a-custom-hid-gamepad-possible-without-bluetooth</link><description>I want to build an HID gamepad on the nRF52840, but I don&amp;#39;t want it to be a bluetooth HID device, I want it to be a USB HID device. 
 Is there a template for this? I saw the &amp;#39;USBD_HID_Generic&amp;#39; example, however, I cannot find a place to put a report descriptor</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Jan 2023 09:17:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96049/is-a-custom-hid-gamepad-possible-without-bluetooth" /><item><title>RE: Is a custom HID gamepad possible WITHOUT bluetooth?</title><link>https://devzone.nordicsemi.com/thread/406801?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 09:17:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4160c5da-73c6-473b-a7cb-c55b83a776dd</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;In the nRF5 SDK the HID descriptors are a bit tricky to find, this is true.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The example consists of a keyboard and a mouse class, and the easiest way to implement your own device (like a gamepad) is probably to copy and modify one of these.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For the keyboard class you can find the USB descriptor inthe app_usbd_hid_kbd_desc.h file, found in the following SDK folder:&lt;br /&gt;&lt;em&gt;\nRF5_SDK_17.1.0_ddde560\components\libraries\usbd\class\hid\kbd&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The best would be to copy and rename all the files in the &lt;em&gt;kbd&lt;/em&gt; subfolder, then you can change them at will without having to modify the original SDK files.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As another option, have you considered migrating to the new nRF Connect SDK instead?&lt;br /&gt;This is our main software platform moving forward, and while it presents a pretty significant learning curve when moving from the nRF5 SDK, it also brings a lot of useful features and improvements.&amp;nbsp;&lt;br /&gt;The HID example in particular is quite a bit easier to get started with, and the HID report descriptor is defined in the main file directly (shown &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/subsys/usb/hid/src/main.c#L44"&gt;here&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is a custom HID gamepad possible WITHOUT bluetooth?</title><link>https://devzone.nordicsemi.com/thread/406734?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 16:53:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ed27786-e542-4e9e-9306-c5689754e6c7</guid><dc:creator>Bk37</dc:creator><description>&lt;p&gt;nRF52 S140 v17.1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is a custom HID gamepad possible WITHOUT bluetooth?</title><link>https://devzone.nordicsemi.com/thread/406641?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 12:14:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0d3add6-8716-42ce-ad0e-a35b4658c144</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is possible, yes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which SDK do you want to use?&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>