Newer
Older
honey-os / src / userland / hid / usagePages / button.c
@biosfood biosfood on 14 Aug 2023 241 bytes hid: allow for generalized usage pages
  1. #include <hid.h>
  2.  
  3. // https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf
  4. // section 12, page 67
  5.  
  6. REQUEST(updateButton, "mouse", "updateButton");
  7.  
  8. void handleButton(uint32_t usage, int32_t data) {
  9. updateButton(usage, data);
  10. }