diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2021-04-07 18:40:01 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2021-04-07 18:45:09 +0200 |
commit | ef3103607b879f02d3af4f84e480a98836946b96 (patch) | |
tree | 985c3022eab4056f45bbf4bd1c7979d064a128d0 | |
parent | c702d0a0b3814caeae46045cb087972d0351b991 (diff) |
Remove scope resolution operators.
Plugin example snippets don't have that either.
-rw-r--r-- | src/Macros.cpp | 9 | ||||
-rw-r--r-- | src/MagicCombo.cpp | 2 |
2 files changed, 6 insertions, 5 deletions
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 <http://www.gnu.org/licenses/>. **********************************************************************/ +#include <Kaleidoscope.h> #include <Kaleidoscope-OneShot.h> #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)); \ diff --git a/src/MagicCombo.cpp b/src/MagicCombo.cpp index a67566e..f24e221 100644 --- a/src/MagicCombo.cpp +++ b/src/MagicCombo.cpp @@ -21,5 +21,5 @@ #include "MagicCombo.h" void comboMiddleClick(uint8_t combo_index) { - ::Macros.play(MACRO(T(mouseBtnM))); + Macros.play(MACRO(T(mouseBtnM))); } |