Kaleidoscope
Macros | Typedefs | Enumerations
MacroSteps.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MACRO_NONE   0
 
#define MACRO(...)   ({static const macro_t __m[] PROGMEM = { __VA_ARGS__, MACRO_ACTION_END }; &__m[0]; })
 
#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
 
#define Dr(k)   MACRO_ACTION_STEP_KEYDOWN, (k).flags, (k).keyCode
 
#define D(k)   Dr(Key_ ## k)
 
#define Ur(k)   MACRO_ACTION_STEP_KEYUP, (k).flags, (k).keyCode
 
#define U(k)   Ur(Key_ ## k)
 
#define Tr(k)   MACRO_ACTION_STEP_TAP, (k).flags, (k).keyCode
 
#define T(k)   Tr(Key_ ## k)
 
#define Dc(k)   MACRO_ACTION_STEP_KEYCODEDOWN, (Key_ ## k).keyCode
 
#define Uc(k)   MACRO_ACTION_STEP_KEYCODEUP, (Key_ ## k).keyCode
 
#define Tc(k)   MACRO_ACTION_STEP_TAPCODE, (Key_ ## k).keyCode
 
#define END   MACRO_ACTION_END
 

Typedefs

typedef uint8_t macro_t
 

Enumerations

enum  MacroActionStepType {
  MACRO_ACTION_END, MACRO_ACTION_STEP_INTERVAL, MACRO_ACTION_STEP_WAIT, MACRO_ACTION_STEP_KEYDOWN,
  MACRO_ACTION_STEP_KEYUP, MACRO_ACTION_STEP_TAP, MACRO_ACTION_STEP_KEYCODEDOWN, MACRO_ACTION_STEP_KEYCODEUP,
  MACRO_ACTION_STEP_TAPCODE
}
 

Macro Definition Documentation

◆ D

#define D (   k)    Dr(Key_ ## k)

◆ Dc

#define Dc (   k)    MACRO_ACTION_STEP_KEYCODEDOWN, (Key_ ## k).keyCode

◆ Dr

#define Dr (   k)    MACRO_ACTION_STEP_KEYDOWN, (k).flags, (k).keyCode

◆ END

#define END   MACRO_ACTION_END

◆ I

#define I (   n)    MACRO_ACTION_STEP_INTERVAL, n

◆ MACRO

#define MACRO (   ...)    ({static const macro_t __m[] PROGMEM = { __VA_ARGS__, MACRO_ACTION_END }; &__m[0]; })

◆ MACRO_NONE

#define MACRO_NONE   0

◆ MACRODOWN

#define MACRODOWN (   ...)    (keyToggledOn(keyState) ? MACRO(__VA_ARGS__) : MACRO_NONE)

◆ T

#define T (   k)    Tr(Key_ ## k)

◆ Tc

#define Tc (   k)    MACRO_ACTION_STEP_TAPCODE, (Key_ ## k).keyCode

◆ Tr

#define Tr (   k)    MACRO_ACTION_STEP_TAP, (k).flags, (k).keyCode

◆ U

#define U (   k)    Ur(Key_ ## k)

◆ Uc

#define Uc (   k)    MACRO_ACTION_STEP_KEYCODEUP, (Key_ ## k).keyCode

◆ Ur

#define Ur (   k)    MACRO_ACTION_STEP_KEYUP, (k).flags, (k).keyCode

◆ W

#define W (   n)    MACRO_ACTION_STEP_WAIT, n

Typedef Documentation

◆ macro_t

typedef uint8_t macro_t

Enumeration Type Documentation

◆ MacroActionStepType

Enumerator
MACRO_ACTION_END 
MACRO_ACTION_STEP_INTERVAL 
MACRO_ACTION_STEP_WAIT 
MACRO_ACTION_STEP_KEYDOWN 
MACRO_ACTION_STEP_KEYUP 
MACRO_ACTION_STEP_TAP 
MACRO_ACTION_STEP_KEYCODEDOWN 
MACRO_ACTION_STEP_KEYCODEUP 
MACRO_ACTION_STEP_TAPCODE