User Tools

Site Tools


hid_mapping

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hid_mapping [2018/12/16 12:41]
xerus Reformat headers
hid_mapping [2018/12/20 12:40]
be.ing [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 =====
  
Line 100: Line 91:
 ==== Inputs ==== ==== Inputs ====
  
-Run ''​mixxx --controllerDebug''​ and see which bytes change when you toy around with the controls. Map these bytes to the mixxx controls.+Run ''​mixxx ​%%--%%controllerDebug''​ and see which bytes change when you toy around with the controls. Map these bytes to the mixxx controls.
  
 ==== Outputs (e.g. LEDs) ==== ==== Outputs (e.g. LEDs) ====
hid_mapping.txt ยท Last modified: 2018/12/20 12:40 by be.ing