From 890f17974690ca9e631e0497b171a5997810065e Mon Sep 17 00:00:00 2001 From: tobymiller1 Date: Mon, 19 Feb 2018 19:24:28 +0000 Subject: [PATCH] changes requested --- src/Kaleidoscope/Unicode.cpp | 7 ++++--- src/Kaleidoscope/Unicode.h | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Kaleidoscope/Unicode.cpp b/src/Kaleidoscope/Unicode.cpp index 59cf1292..17f0100f 100644 --- a/src/Kaleidoscope/Unicode.cpp +++ b/src/Kaleidoscope/Unicode.cpp @@ -60,6 +60,7 @@ void Unicode::start(void) { void Unicode::input(void) { switch (::HostOS.os()) { case hostos::LINUX: + break; case hostos::WINDOWS: case hostos::OSX: hid::pressRawKey(Key_LeftAlt); @@ -100,7 +101,7 @@ void Unicode::typeCode(uint32_t unicode) { if (on_zero_start == false) { Key key; if (::HostOS.os() == hostos::WINDOWS) { - key = hexToKeyWindows(digit); + key = hexToKeysWithNumpad(digit); } else { key = hexToKey(digit); @@ -115,7 +116,7 @@ void Unicode::typeCode(uint32_t unicode) { } else { Key key; if (::HostOS.os() == hostos::WINDOWS) { - key = hexToKeyWindows(digit); + key = hexToKeysWithNumpad(digit); } else { key = hexToKey(digit); @@ -153,7 +154,7 @@ __attribute__((weak)) Key hexToKey(uint8_t hex) { return { m, KEY_FLAGS }; } -__attribute__((weak)) Key hexToKeyWindows(uint8_t hex) { +__attribute__((weak)) Key hexToKeysWithNumpad(uint8_t hex) { uint8_t m; if (hex == 0x0) { return Key_Keypad0; diff --git a/src/Kaleidoscope/Unicode.h b/src/Kaleidoscope/Unicode.h index 14fc5086..293fe7a7 100644 --- a/src/Kaleidoscope/Unicode.h +++ b/src/Kaleidoscope/Unicode.h @@ -38,7 +38,7 @@ class Unicode : public KaleidoscopePlugin { } Key hexToKey(uint8_t hex); -Key hexToKeyWindows(uint8_t hex); +Key hexToKeysWithNumpad(uint8_t hex); void unicodeCustomStart(void); void unicodeCustomEnd(void);