Newer
Older
honey-os / src / userland / hid / usagePages / button.c
@biosfood biosfood on 14 Aug 2023 241 bytes hid: allow for generalized usage pages
#include <hid.h>

// https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf
// section 12, page 67

REQUEST(updateButton, "mouse", "updateButton");

void handleButton(uint32_t usage, int32_t data) {
    updateButton(usage, data);
}