User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
hid_mapping [2018/12/16 13:09] [Inputs] wiki formatting (-- turns into an em dash without %%s)
hid_mapping [2018/12/20 12:40] (current) [Sending data to the controller] remove confusing and unnecessary info
Line 55: Line 55:
 controller.send(byteArray,​ null, reportID); controller.send(byteArray,​ null, reportID);
 </​code>​ </​code>​
-=== Cross platform compatibility === 
-Due to system specific implementation differences of hidapi the first byte of the data should always be sent as the ''​reportID''​ parameter and omitted from the array given in the first parameter. Example: 
-<code javascript>​ 
-// send byte sequence 0x80 0x01 0x02 0x03 to the controller - on any system 
-var byteArray = [ 0x01, 0x02, 0x03 ]; 
-controller.send(byteArray,​ null, 0x80]; 
-</​code> ​ 
 ===== XML file ===== ===== XML file =====
hid_mapping.txt ยท Last modified: 2018/12/20 12:40 by