From ef3103607b879f02d3af4f84e480a98836946b96 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 7 Apr 2021 18:40:01 +0200 Subject: Remove scope resolution operators. Plugin example snippets don't have that either. --- src/Macros.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/Macros.cpp') diff --git a/src/Macros.cpp b/src/Macros.cpp index 27b6b21..e1c567a 100644 --- a/src/Macros.cpp +++ b/src/Macros.cpp @@ -16,6 +16,7 @@ * along with this program. If not, see . **********************************************************************/ +#include #include #include "Macros.h" @@ -30,10 +31,10 @@ */ #define TopRow(k1, k2) \ if (keyToggledOn(keyState)) { \ - if (kaleidoscope::Runtime.hid().keyboard().isModifierKeyActive(Key_LeftControl) || \ - ::OneShot.isModifierActive(Key_LeftControl) || \ - kaleidoscope::Runtime.hid().keyboard().isModifierKeyActive(Key_RightAlt) || \ - ::OneShot.isModifierActive(Key_RightAlt)) \ + if (Kaleidoscope.hid().keyboard().isModifierKeyActive(Key_LeftControl) || \ + OneShot.isModifierActive(Key_LeftControl) || \ + Kaleidoscope.hid().keyboard().isModifierKeyActive(Key_RightAlt) || \ + OneShot.isModifierActive(Key_RightAlt)) \ return MACRO(Dr(k2)); \ else \ return MACRO(Dr(k1)); \ -- cgit v1.2.3