diff --git a/examples/AppSwitcher/AppSwitcher.ino b/examples/AppSwitcher/AppSwitcher.ino index d72feca0..a7a239a9 100644 --- a/examples/AppSwitcher/AppSwitcher.ino +++ b/examples/AppSwitcher/AppSwitcher.ino @@ -58,8 +58,9 @@ const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) { } void setup() { - Kaleidoscope.setup(KEYMAP_SIZE); - Kaleidoscope.use(&HostOS, &Macros, NULL); + USE_PLUGINS(&HostOS, &Macros); + + Kaleidoscope.setup(); } void loop() { diff --git a/examples/AppSwitcher/Macros.cpp b/examples/AppSwitcher/Macros.cpp index d60cfe4f..db543026 100644 --- a/examples/AppSwitcher/Macros.cpp +++ b/examples/AppSwitcher/Macros.cpp @@ -23,14 +23,14 @@ #include "Macros.h" -using namespace KaleidoscopePlugins::HostOS; +namespace H = kaleidoscope::hostos; static bool appSwitchActive = false; const macro_t *macroAppSwitch(uint8_t keyState) { Key mod = Key_LeftAlt; - if (HostOS.os() == OSX) + if (HostOS.os() == H::OSX) mod = Key_LeftGui; // Key was just pressed, or is being held