From afa32312e04b59eab4a17261e5c932cbdac29ee0 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Fri, 18 May 2018 12:00:29 +0200 Subject: [PATCH] Make the ErgoDox symbol available The global `ErgoDox` symbol should be a shortcut, an alias, to KeyboardHardware. When using ErgoDox-specific functionality, `ErgoDox.someMethod()` is much clearer about that than `KeyboardHardware.someMethod()` would be. Signed-off-by: Gergely Nagy --- src/kaleidoscope/hardware/ErgoDox.cpp | 1 + src/kaleidoscope/hardware/ErgoDox.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/kaleidoscope/hardware/ErgoDox.cpp b/src/kaleidoscope/hardware/ErgoDox.cpp index 1702b3f6..4bed81af 100644 --- a/src/kaleidoscope/hardware/ErgoDox.cpp +++ b/src/kaleidoscope/hardware/ErgoDox.cpp @@ -108,3 +108,4 @@ bool ErgoDox::isKeyMasked(byte row, byte col) { } HARDWARE_IMPLEMENTATION KeyboardHardware; +kaleidoscope::hardware::ErgoDox &ErgoDox = KeyboardHardware; diff --git a/src/kaleidoscope/hardware/ErgoDox.h b/src/kaleidoscope/hardware/ErgoDox.h index af119e68..18e974db 100644 --- a/src/kaleidoscope/hardware/ErgoDox.h +++ b/src/kaleidoscope/hardware/ErgoDox.h @@ -118,3 +118,5 @@ class ErgoDox { } } + +extern kaleidoscope::hardware::ErgoDox &ErgoDox;