qmk_firmware/tmk_core/protocol/lufa
José Júnior ee43b338ea Incorporates patches and changes to HID reporting
There are some patches provided by @a-chol incorporated on this commit,
and also some changes I made to the HID Report structure.

The most interesting is the one dealing with number of buttons: Linux
doesn't seem to care, but Windows requires the HID structure to be byte
aligned (that's in the spec). So if one declares 8/16/32... buttons they
should not have any issues, but this is what happens when you have 9
buttons:

```
 bits |0|1|2|3|4|5|6|7|
      |*|*|*|*|*|*|*|*| axis 0 (report size 8)
      |*|*|*|*|*|*|*|*| ...
      |*|*|*|*|*|*|*|*|
      |*|*|*|*|*|*|*|*|
      |*|*|*|*|*|*|*|*|
      |*|*|*|*|*|*|*|*|
      |*|*|*|*|*|*|*|*| axis 6
      |*|*|*|*|*|*|*|*| first 8 buttons (report size 1)
      |*| | | | | | | | last of 9 buttons, not aligned
```

So for that I added a conditonal that will add a number of reports with
size 1 to make sure it aligns to the next multiple of 8. Those reports
send dummy inputs that don't do anything aside from aligning the data.

Tested on Linux, Windows 10 and Street Fighter (where the joystick is
recognized as direct-input)
2020-03-22 11:23:32 +01:00
..
adafruit_ble.cpp Run clang-format manually to fix recently changed files 2019-11-17 08:25:58 -08:00
adafruit_ble.h clang-format changes 2019-08-30 15:01:52 -07:00
bluetooth.c clang-format changes 2019-08-30 15:01:52 -07:00
bluetooth.h clang-format changes 2019-08-30 15:01:52 -07:00
lufa.c Incorporates patches and changes to HID reporting 2020-03-22 11:23:32 +01:00
lufa.h Dedupe extrakey report struct, and send functions in V-USB & LUFA (#7993) 2020-02-02 12:17:05 -08:00
outputselect.c clang-format changes 2019-08-30 15:01:52 -07:00
outputselect.h clang-format changes 2019-08-30 15:01:52 -07:00
ringbuffer.hpp Add support for Adafruit BLE modules 2016-11-27 23:49:44 -08:00