From be82530412ad1e665fa75647e324d2a23ee65a87 Mon Sep 17 00:00:00 2001 From: Eric Tang Date: Sun, 24 Jun 2018 14:03:39 -0700 Subject: [PATCH] Rename macro key actions in accordance with Agent --- right/src/macros.c | 4 ++-- right/src/macros.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/right/src/macros.c b/right/src/macros.c index 900b3fc..566cbcf 100644 --- a/right/src/macros.c +++ b/right/src/macros.c @@ -189,7 +189,7 @@ bool processKeyMacroAction(void) static bool pressStarted; switch (currentMacroAction.key.action) { - case MacroSubAction_Press: + case MacroSubAction_Tap: if (!pressStarted) { pressStarted = true; addModifiers(currentMacroAction.key.modifierMask); @@ -234,7 +234,7 @@ bool processKeyMacroAction(void) break; } break; - case MacroSubAction_Hold: + case MacroSubAction_Press: addModifiers(currentMacroAction.key.modifierMask); switch (currentMacroAction.key.type) { case KeystrokeType_Basic: diff --git a/right/src/macros.h b/right/src/macros.h index 1fded26..a4f1c52 100644 --- a/right/src/macros.h +++ b/right/src/macros.h @@ -20,8 +20,8 @@ } macro_reference_t; typedef enum { + MacroSubAction_Tap, MacroSubAction_Press, - MacroSubAction_Hold, MacroSubAction_Release, } macro_sub_action_t;