From 901814be2f8a320ab3e4ad88febb947a9a30081b Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Fri, 6 Jan 2017 08:06:26 +0100 Subject: [PATCH 1/2] action.h: Add keystroke.longpress and switchLayer.isToggle Signed-off-by: Gergely Nagy --- right/src/action.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/right/src/action.h b/right/src/action.h index cc6bef4..c261192 100644 --- a/right/src/action.h +++ b/right/src/action.h @@ -65,7 +65,7 @@ typedef struct { uint8_t type; union { struct { - uint8_t __unused_bits; + uint8_t longPress; uint8_t mods; uint8_t key; } __attribute__ ((packed)) keystroke; @@ -75,7 +75,8 @@ typedef struct { uint8_t moveActions; // bitfield } __attribute__ ((packed)) mouse; struct { - uint16_t __unused_bits; + uint16_t __unused_bits:15; + bool isToggle:1; uint8_t layer; } __attribute__ ((packed)) switchLayer; struct { From 00214eac7e2f13f3c59a7b3b760a9da1ab09f7cd Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Fri, 6 Jan 2017 08:07:04 +0100 Subject: [PATCH 2/2] action.h: Rename switchKeymap.layer to switchKeymap.keymap Signed-off-by: Gergely Nagy --- right/src/action.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/right/src/action.h b/right/src/action.h index c261192..d54fe41 100644 --- a/right/src/action.h +++ b/right/src/action.h @@ -81,7 +81,7 @@ typedef struct { } __attribute__ ((packed)) switchLayer; struct { uint16_t __unused_bits; - uint8_t layer; + uint8_t keymap; } __attribute__ ((packed)) switchKeymap; struct { uint8_t __unused_bits;