Updated to support newest Focus

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/365/head
Gergely Nagy 8 years ago
parent db09b35be3
commit 03ab5f1a47

@ -48,7 +48,10 @@ void setup () {
USE_PLUGINS (&EEPROMKeymap, &Focus); USE_PLUGINS (&EEPROMKeymap, &Focus);
Focus.addCommand (FOCUS_CMD_KEYMAP); Focus.addHook (FOCUS_HOOK_KEYMAP);
Focus.addHook (FOCUS_HOOK_HELP);
Focus.addHook (FOCUS_HOOK_VERSION);
Layer.getKey = EEPROMKeymap.getKey; Layer.getKey = EEPROMKeymap.getKey;
} }

@ -19,25 +19,25 @@
#include <Kaleidoscope.h> #include <Kaleidoscope.h>
#include <Kaleidoscope-EEPROM-Settings.h> #include <Kaleidoscope-EEPROM-Settings.h>
#define FOCUS_CMD_KEYMAP FOCUS_COMMAND(EEPROMKeymap.focusKeymap, \ #define FOCUS_HOOK_KEYMAP FOCUS_HOOK(EEPROMKeymap.focusKeymap, \
"keymap.dump\n" \ "keymap.dump\n" \
"-----------\n" \ "-----------\n" \
"Dumps the keymap from EEPROM.\n\n" \ "Dumps the keymap from EEPROM.\n\n" \
"keymap.upload <flag keyCode>...\n" \ "keymap.upload <flag keyCode>...\n" \
"-------------------------------\n" \ "-------------------------------\n" \
"Uploads a new keymap to EEPROM." \ "Uploads a new keymap to EEPROM." \
"Starts at layer 0, row 0, column 0, " \ "Starts at layer 0, row 0, column 0, " \
"and continues as long as there is data on the line.\n\n" \ "and continues as long as there is data on the line.\n\n" \
"keymap.setPos layer row column flag keyCode\n" \ "keymap.setPos layer row column flag keyCode\n" \
"-------------------------------------------\n" \ "-------------------------------------------\n" \
"Sets the key at the specified `layer`, `row`, and `column` " \ "Sets the key at the specified `layer`, `row`, and `column` " \
"to the key with `flag`, and `keyCode` properties.\n\n" \ "to the key with `flag`, and `keyCode` properties.\n\n" \
"keymap.getPos layer row column\n" \ "keymap.getPos layer row column\n" \
"------------------------------\n" \ "------------------------------\n" \
"Dump the key at `layer`, `row`, and `column`.\n\n" \ "Dump the key at `layer`, `row`, and `column`.\n\n" \
"keymap.transfer layer\n" \ "keymap.transfer layer\n" \
"---------------------\n" \ "---------------------\n" \
"Transfers the `layer` from PROGMEM to EEPROM.") "Transfers the `layer` from PROGMEM to EEPROM.")
namespace KaleidoscopePlugins { namespace KaleidoscopePlugins {
class EEPROMKeymap : public KaleidoscopePlugin { class EEPROMKeymap : public KaleidoscopePlugin {

Loading…
Cancel
Save