From f2dc52ba0b734c2f54e32dbf494bf83540f03249 Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Fri, 1 Dec 2017 23:32:55 -0600 Subject: [PATCH] Added mask() & unmask() functions --- src/addr.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/addr.h b/src/addr.h index 156ce8e8..24e8054a 100644 --- a/src/addr.h +++ b/src/addr.h @@ -34,5 +34,11 @@ inline uint8_t col(uint8_t key_addr) { inline uint8_t addr(uint8_t row, uint8_t col) { return ((row * COLS) + col); } +inline void mask(uint8_t key_addr) { + KeyboardHardware.maskKey(row(key_addr), col(key_addr)); +} +inline void unmask(uint8_t key_addr) { + KeyboardHardware.maskKey(row(key_addr), col(key_addr)); +} } // namespace addr { } // namespace kaleidoscope {