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() {
Kaleidoscope.setup(KEYMAP_SIZE);
Kaleidoscope.use(&HostOS, &Macros, NULL);
USE_PLUGINS(&HostOS, &Macros);
Kaleidoscope.setup();
}
void loop() {

@ -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

Loading…
Cancel
Save