|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
/* -*- mode: c++ -*-
|
|
|
|
|
* Kaleidoscope-HostOS -- Host OS detection and tracking for Kaleidoscope
|
|
|
|
|
* Copyright (C) 2016, 2017 Gergely Nagy
|
|
|
|
|
* Copyright (C) 2016, 2017, 2018 Gergely Nagy
|
|
|
|
|
*
|
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
@ -19,6 +19,7 @@
|
|
|
|
|
#include <Kaleidoscope-HostOS.h>
|
|
|
|
|
#include <Kaleidoscope/HostOS-select.h>
|
|
|
|
|
|
|
|
|
|
// *INDENT-OFF*
|
|
|
|
|
const Key keymaps[][ROWS][COLS] PROGMEM = {
|
|
|
|
|
[0] = KEYMAP_STACKED
|
|
|
|
|
(Key_NoKey, Key_1, Key_2, Key_3, Key_4, Key_5, Key_NoKey,
|
|
|
|
@ -37,12 +38,13 @@ const Key keymaps[][ROWS][COLS] PROGMEM = {
|
|
|
|
|
Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl,
|
|
|
|
|
Key_skip),
|
|
|
|
|
};
|
|
|
|
|
// *INDENT-ON*
|
|
|
|
|
|
|
|
|
|
KALEIDOSCOPE_INIT_PLUGINS(HostOS);
|
|
|
|
|
|
|
|
|
|
void setup() {
|
|
|
|
|
Serial.begin(9600);
|
|
|
|
|
|
|
|
|
|
Kaleidoscope.use(&HostOS);
|
|
|
|
|
|
|
|
|
|
Kaleidoscope.setup();
|
|
|
|
|
|
|
|
|
|
Serial.print("Host OS id is: ");
|
|
|
|
|