examples/AppSwitcher: Update to use newest HostOS APIs

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/135/head
Gergely Nagy 8 years ago
parent 8c6b8433cc
commit c20732257b

@ -58,8 +58,9 @@ const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) {
} }
void setup() { void setup() {
Kaleidoscope.setup(KEYMAP_SIZE); USE_PLUGINS(&HostOS, &Macros);
Kaleidoscope.use(&HostOS, &Macros, NULL);
Kaleidoscope.setup();
} }
void loop() { void loop() {

@ -23,14 +23,14 @@
#include "Macros.h" #include "Macros.h"
using namespace KaleidoscopePlugins::HostOS; namespace H = kaleidoscope::hostos;
static bool appSwitchActive = false; static bool appSwitchActive = false;
const macro_t *macroAppSwitch(uint8_t keyState) { const macro_t *macroAppSwitch(uint8_t keyState) {
Key mod = Key_LeftAlt; Key mod = Key_LeftAlt;
if (HostOS.os() == OSX) if (HostOS.os() == H::OSX)
mod = Key_LeftGui; mod = Key_LeftGui;
// Key was just pressed, or is being held // Key was just pressed, or is being held

Loading…
Cancel
Save