Add built-in macro keypad 00 for RedScarfII
This commit is contained in:
parent
3e6e61000e
commit
3cca7e0591
@ -90,3 +90,21 @@ uint16_t fn_actions_count(void) {
|
||||
return sizeof(fn_actions) / sizeof(fn_actions[0]);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Action macro definition
|
||||
*/
|
||||
enum macro_id {
|
||||
KEYPAD_00 = 0,
|
||||
};
|
||||
|
||||
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
||||
{
|
||||
switch (id) {
|
||||
case KEYPAD_00:
|
||||
return (record->event.pressed ?
|
||||
MACRO( T(P0), T(P0), END ) :
|
||||
MACRO_NONE );
|
||||
}
|
||||
return MACRO_NONE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user