User Tools

Site Tools


hid_device_api

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
Next revision Both sides next revision
hid_device_api [2012/05/21 05:53]
hile [Binding Actions to Incoming Controls]
hid_device_api [2018/12/27 10:46]
xerus [Defining Controls] pack table
Line 65: Line 65:
 === Packing === === Packing ===
  
-Instead of telling the packet field length, HIDPacket parses the fields based on //pack// attribute. The packing tells the size and numeric range for each field, and allows us to convert the input number to and from exactly correct value. ​Valid '​pack'​ values are b (signed byte), ​(unsigned byte), (signed ​short), H (unsigned ​short)(unsigned ​int) and I (signed ​int)A field containing bits still needs to be given valid '​pack'​ value, to calculate bit vector masks and check boundaries.+Instead of telling the packet field length, HIDPacket parses the fields based on //pack// attribute. The packing tells the size and numeric range for each field, and allows us to convert the input number to and from exactly correct value. ​Currently supported ​'​pack'​ values are 
 +unsigned/​signed ​byte                    | 
 +/ H | unsigned/signed ​two byte value (short) ​ | 
 +/ I | unsigned/signed four byte value (int)   | 
 +A field containing bits still needs to be given valid '​pack'​ value, to calculate bit vector masks and check boundaries.
  
 === Bitmask === === Bitmask ===
Line 178: Line 182:
 ===== References ===== ===== References =====
  
-  * **EKS Otus HID Mapping** [[http://tuohela.net/otus.js]]+  * **Development branch by Hile for HID scripts** [[https://code.launchpad.net/~hile/​mixxx/​hidscripts]]
   * **Hercules Console Mk2 HID Mapping** [[http://​mixxx.org/​forums/​viewtopic.php?​f=7&​t=3712]] ​   * **Hercules Console Mk2 HID Mapping** [[http://​mixxx.org/​forums/​viewtopic.php?​f=7&​t=3712]] ​
hid_device_api.txt · Last modified: 2018/12/28 03:05 by be.ing