]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - common/report.h
Add repeating of Fn key with alt keycode.
[max/tmk_keyboard.git] / common / report.h
index b85b86c5f85dae6ca51024dce9751f5beb0f396c..a73e0aba180bfbc09588ad6a2386191e334c6b35 100644 (file)
@@ -78,19 +78,27 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #   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