lufa: Update mouse descriptor for 16 bit #692
Squashed commit from: https://github.com/tmk/tmk_keyboard/pull/692
This commit is contained in:
parent
9b58ee7db0
commit
9b77bf9295
2 changed files with 48 additions and 9 deletions
|
|
@ -157,6 +157,15 @@ typedef struct {
|
|||
} __attribute__ ((packed)) report_keyboard_t;
|
||||
*/
|
||||
|
||||
#ifdef ENABLE_16_BIT_MOUSE_REPORT
|
||||
typedef struct {
|
||||
uint8_t buttons;
|
||||
int16_t x;
|
||||
int16_t y;
|
||||
int16_t v;
|
||||
int16_t h;
|
||||
} __attribute__ ((packed)) report_mouse_t;
|
||||
#else
|
||||
typedef struct {
|
||||
uint8_t buttons;
|
||||
int8_t x;
|
||||
|
|
@ -164,6 +173,7 @@ typedef struct {
|
|||
int8_t v;
|
||||
int8_t h;
|
||||
} __attribute__ ((packed)) report_mouse_t;
|
||||
#endif
|
||||
|
||||
|
||||
/* keycode to system usage */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue