make astyle

pull/389/head
Jesse Vincent 8 years ago
parent 5d6f385791
commit 1a9f3e1a33
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -22,16 +22,16 @@
namespace KaleidoscopePlugins { namespace KaleidoscopePlugins {
EscapeOneShot::EscapeOneShot (void) { EscapeOneShot::EscapeOneShot (void) {
} }
void void
EscapeOneShot::begin (void) { EscapeOneShot::begin (void) {
event_handler_hook_use (eventHandlerHook); event_handler_hook_use (eventHandlerHook);
} }
Key Key
EscapeOneShot::eventHandlerHook (Key mappedKey, byte row, byte col, uint8_t keyState) { EscapeOneShot::eventHandlerHook (Key mappedKey, byte row, byte col, uint8_t keyState) {
if (mappedKey.raw != Key_Escape.raw || if (mappedKey.raw != Key_Escape.raw ||
(keyState & INJECTED) || (keyState & INJECTED) ||
!key_toggled_on (keyState)) !key_toggled_on (keyState))
@ -43,7 +43,7 @@ namespace KaleidoscopePlugins {
OneShot::cancel (); OneShot::cancel ();
return Key_NoKey; return Key_NoKey;
} }
}; };
KaleidoscopePlugins::EscapeOneShot EscapeOneShot; KaleidoscopePlugins::EscapeOneShot EscapeOneShot;

@ -19,7 +19,7 @@
#include <Kaleidoscope.h> #include <Kaleidoscope.h>
namespace KaleidoscopePlugins { namespace KaleidoscopePlugins {
class EscapeOneShot : public KaleidoscopePlugin { class EscapeOneShot : public KaleidoscopePlugin {
public: public:
EscapeOneShot (void); EscapeOneShot (void);
@ -27,7 +27,7 @@ namespace KaleidoscopePlugins {
private: private:
static Key eventHandlerHook (Key mappedKey, byte row, byte col, uint8_t keyState); static Key eventHandlerHook (Key mappedKey, byte row, byte col, uint8_t keyState);
}; };
}; };
extern KaleidoscopePlugins::EscapeOneShot EscapeOneShot; extern KaleidoscopePlugins::EscapeOneShot EscapeOneShot;

Loading…
Cancel
Save