1
0
Fork 0

Add MACRO action

This commit is contained in:
tmk 2013-02-25 15:30:37 +09:00
parent 000f3c4c54
commit 23c32d304b
4 changed files with 39 additions and 30 deletions

View file

@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "keycode.h"
#include "layer_switch.h"
#include "action.h"
#include "action_macro.h"
#include "debug.h"
@ -39,9 +40,10 @@ action_t action_for_key(uint8_t layer, key_t key)
}
__attribute__ ((weak))
void action_function(keyrecord_t *record, uint8_t id, uint8_t opt)
{
}
const prog_macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { return MACRO_NONE; }
__attribute__ ((weak))
void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {}
#else
/*
* legacy keymap support