keyToggledO* camelcasing

pull/365/head
Jesse Vincent 8 years ago
parent 74363e6a4a
commit f30af4d85d
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -50,12 +50,12 @@ const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) {
W(100),
T(0), T(1) );
case MACRO_HELLO:
if (key_toggled_on(keyState)) {
if (keyToggledOn(keyState)) {
Macros.type(PSTR("Hello world!"));
}
break;
case MACRO_SPECIAL:
if (key_toggled_on(keyState)) {
if (keyToggledOn(keyState)) {
// Do something special
}
break;

@ -19,7 +19,7 @@ typedef uint8_t macro_t;
#define MACRO_NONE 0
#define MACRO(...) ({static const macro_t __m[] PROGMEM = { __VA_ARGS__, MACRO_ACTION_END }; &__m[0]; })
#define MACRODOWN(...) (key_toggled_on(keyState) ? MACRO(__VA_ARGS__) : MACRO_NONE)
#define MACRODOWN(...) (keyToggledOn(keyState) ? MACRO(__VA_ARGS__) : MACRO_NONE)
#define I(n) MACRO_ACTION_STEP_INTERVAL, n
#define W(n) MACRO_ACTION_STEP_WAIT, n

Loading…
Cancel
Save