|
|
|
@ -20,16 +20,16 @@
|
|
|
|
|
|
|
|
|
|
namespace KaleidoscopePlugins {
|
|
|
|
|
|
|
|
|
|
Unicode::Unicode (void) {
|
|
|
|
|
}
|
|
|
|
|
Unicode::Unicode (void) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
Unicode::begin (void) {
|
|
|
|
|
void
|
|
|
|
|
Unicode::begin (void) {
|
|
|
|
|
::HostOS.begin ();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
Unicode::start (void) {
|
|
|
|
|
void
|
|
|
|
|
Unicode::start (void) {
|
|
|
|
|
switch (::HostOS.os ()) {
|
|
|
|
|
case HostOS::LINUX:
|
|
|
|
|
Keyboard.press (Key_LeftControl.keyCode);
|
|
|
|
@ -58,10 +58,10 @@ namespace KaleidoscopePlugins {
|
|
|
|
|
unicodeCustomStart ();
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
Unicode::input (void) {
|
|
|
|
|
void
|
|
|
|
|
Unicode::input (void) {
|
|
|
|
|
switch (::HostOS.os ()) {
|
|
|
|
|
case HostOS::LINUX:
|
|
|
|
|
case HostOS::WINDOWS:
|
|
|
|
@ -73,10 +73,10 @@ namespace KaleidoscopePlugins {
|
|
|
|
|
unicodeCustomInput ();
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
Unicode::end (void) {
|
|
|
|
|
void
|
|
|
|
|
Unicode::end (void) {
|
|
|
|
|
switch (::HostOS.os ()) {
|
|
|
|
|
case HostOS::LINUX:
|
|
|
|
|
Keyboard.press (Key_Spacebar.keyCode);
|
|
|
|
@ -94,10 +94,10 @@ namespace KaleidoscopePlugins {
|
|
|
|
|
unicodeCustomEnd ();
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
Unicode::typeCode (uint32_t unicode) {
|
|
|
|
|
void
|
|
|
|
|
Unicode::typeCode (uint32_t unicode) {
|
|
|
|
|
bool onZeroStart = true;
|
|
|
|
|
|
|
|
|
|
for (int8_t i = 7; i >= 0; i--) {
|
|
|
|
@ -132,14 +132,14 @@ namespace KaleidoscopePlugins {
|
|
|
|
|
|
|
|
|
|
delay (5);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
Unicode::type (uint32_t unicode) {
|
|
|
|
|
void
|
|
|
|
|
Unicode::type (uint32_t unicode) {
|
|
|
|
|
start ();
|
|
|
|
|
typeCode (unicode);
|
|
|
|
|
end ();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
__attribute__((weak))
|
|
|
|
|