summaryrefslogtreecommitdiff
path: root/tmk_core
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-03-21 16:17:43 +1100
committerFlorian Didron <fdidron@users.noreply.github.com>2020-06-12 17:00:27 +0900
commit33e10d961bd001cda823b3f947d2247dbbce11fe (patch)
treeef4a3fecab540a3c11e60b08f3b9ea1d2ae447b5 /tmk_core
parent0fcb6ef6d575ef00fdf87e00bf967221668064f4 (diff)
Remove ACT_COMMAND (#8487)
* Remove ACT_COMMAND * And from action_t as well
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/common/action.c3
-rw-r--r--tmk_core/common/action_code.h12
2 files changed, 1 insertions, 14 deletions
diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c
index 1ebe8b691a..174faf856a 100644
--- a/tmk_core/common/action.c
+++ b/tmk_core/common/action.c
@@ -1039,9 +1039,6 @@ void debug_action(action_t action) {
case ACT_MACRO:
dprint("ACT_MACRO");
break;
- case ACT_COMMAND:
- dprint("ACT_COMMAND");
- break;
case ACT_FUNCTION:
dprint("ACT_FUNCTION");
break;
diff --git a/tmk_core/common/action_code.h b/tmk_core/common/action_code.h
index 6c005b76d1..f80b7a782e 100644
--- a/tmk_core/common/action_code.h
+++ b/tmk_core/common/action_code.h
@@ -87,9 +87,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
* 1100|1111| id(8) Macro record?
*
* 1101|xxxx xxxx xxxx (reserved)
- *
- * ACT_COMMAND(1110):
- * 1110|opt | id(8) Built-in Command exec
+ * 1110|xxxx xxxx xxxx (reserved)
*
* ACT_FUNCTION(1111):
* 1111| address(12) Function?
@@ -115,7 +113,6 @@ enum action_kind_id {
ACT_LAYER_TAP_EXT = 0b1011, /* Layer 16-31 */
/* Extensions */
ACT_MACRO = 0b1100,
- ACT_COMMAND = 0b1110,
ACT_FUNCTION = 0b1111
};
@@ -167,11 +164,6 @@ typedef union {
uint8_t page : 2;
uint8_t kind : 4;
} usage;
- struct action_command {
- uint8_t id : 8;
- uint8_t opt : 4;
- uint8_t kind : 4;
- } command;
struct action_function {
uint8_t id : 8;
uint8_t opt : 4;
@@ -287,8 +279,6 @@ enum layer_param_tap_op {
#define ACTION_MACRO(id) ACTION(ACT_MACRO, (id))
#define ACTION_MACRO_TAP(id) ACTION(ACT_MACRO, FUNC_TAP << 8 | (id))
#define ACTION_MACRO_OPT(id, opt) ACTION(ACT_MACRO, (opt) << 8 | (id))
-/* Command */
-#define ACTION_COMMAND(id, opt) ACTION(ACT_COMMAND, (opt) << 8 | (id))
/* Function */
enum function_opts {
FUNC_TAP = 0x8, /* indciates function is tappable */