You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Kaleidoscope/libraries/Keyboardio-Macros/src/Keyboardio-Macros.h

27 lines
555 B

#pragma once
#include <KeyboardioFirmware.h>
#define IS_MACRO B00000001
#define M(n) (Key){ KEY_FLAGS|SYNTHETIC|IS_MACRO, n}
#define Key_macroKey1 M(1)
#define Key_macroKey2 M(2)
#define Key_macroKey3 M(3)
#define Key_macroKey4 M(4)
#define Key_macroKey5 M(5)
#define Key_macroKey6 M(6)
#define Key_macroKey7 M(7)
#define Key_macroKey8 M(8)
#define Key_macroKey9 M(9)
#define Key_macroKey10 M(10)
void macroAction(uint8_t macroIndex, uint8_t keyState);
class Macros_ {
public:
Macros_(void);
};
extern Macros_ Macros;