make astyle

pull/389/head
Jesse Vincent 8 years ago
parent e357203eec
commit 3b32197829
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -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))

@ -22,7 +22,7 @@
#include <Kaleidoscope-HostOS.h>
namespace KaleidoscopePlugins {
class Unicode : public KaleidoscopePlugin {
class Unicode : public KaleidoscopePlugin {
public:
Unicode (void);
@ -34,7 +34,7 @@ namespace KaleidoscopePlugins {
static void type (uint32_t unicode);
static void typeCode (uint32_t unicode);
};
};
};
Key hexToKey (uint8_t hex);

Loading…
Cancel
Save