Quantcast
Channel: Objective Development Forums
Viewing all articles
Browse latest Browse all 4524

Re: HID Gamepad - not more than 16 buttons?

$
0
0
blargg wrote:Going back to your original report, as described in an older posting, to use a report longer than 8 bytes, one must still make multiple calls to usbSetInterrupt() (a single did not work).


Hmm... I read the linked thread (thanks for that) but could you maybe elaborate a litte? What's confusing me is that the keyboard report with added reportId byte is already longer than 8 bytes and it works with a single call to usbSetInterrupt().

typedef struct {
    uint8_t report_id;
    uint8_t modifier;
    uint8_t reserved;
    uint8_t keycode[6];
} keyboard_report_t;


I'm obviously missing something here but right now these two things seem to contradict each other. Maybe I'm just lucky?

Viewing all articles
Browse latest Browse all 4524

Trending Articles