]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
Add NO_ACTION_FUNCTION config option
authortmk <nobody@nowhere>
Tue, 19 Mar 2013 15:37:32 +0000 (00:37 +0900)
committertmk <nobody@nowhere>
Tue, 19 Mar 2013 15:37:32 +0000 (00:37 +0900)
common/action.c
keyboard/gh60/config.h

index eda3a6d328fe09c6157472d95c2b940379f3eee9..51b11d1bc2cc7539b4971c9cc59b2ccc5e4d5bc2 100644 (file)
@@ -688,14 +688,18 @@ static void process_action(keyrecord_t *record)
 #endif
 
         /* Extentions */
+#ifndef NO_ACTION_MACRO
         case ACT_MACRO:
             action_macro_play(action_get_macro(record, action.func.id, action.func.opt));
             break;
+#endif
         case ACT_COMMAND:
             break;
+#ifndef NO_ACTION_FUNCTION
         case ACT_FUNCTION:
             action_function(record, action.func.id, action.func.opt);
             break;
+#endif
         default:
             break;
     }
index bf5807644202ebaef60104d9ec5983abadcadbca..2e2387aa298c30437250f285c6bfa0285577ed7d 100644 (file)
@@ -64,5 +64,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define NO_ACTION_OVERLAY
 #define NO_ACTION_TAPPING
 #define NO_ACTION_MACRO
+#define NO_ACTION_FUNCTION
 
 #endif