X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=common%2Freport.h;h=a73e0aba180bfbc09588ad6a2386191e334c6b35;hb=e9af482690152f1beedbbb915791eccd2d5c22d1;hp=b85b86c5f85dae6ca51024dce9751f5beb0f396c;hpb=f4125707399d11a7d80587659c464b9bcddb8c56;p=max%2Ftmk_keyboard.git diff --git a/common/report.h b/common/report.h index b85b86c5..a73e0aba 100644 --- a/common/report.h +++ b/common/report.h @@ -78,19 +78,27 @@ along with this program. If not, see . # define REPORT_KEYS 6 #endif + +#ifdef __cplusplus +extern "C" { +#endif + typedef struct { uint8_t mods; uint8_t rserved; uint8_t keys[REPORT_KEYS]; -} report_keyboard_t; +} __attribute__ ((packed)) report_keyboard_t; typedef struct { - uint8_t report_id; uint8_t buttons; int8_t x; int8_t y; int8_t v; int8_t h; -} report_mouse_t; +} __attribute__ ((packed)) report_mouse_t; + +#ifdef __cplusplus +} +#endif #endif