]> git.donarmstrong.com Git - tmk_firmware.git/blobdiff - common/command.h
Merge remote-tracking branch 'tmk/master' into cub_layout
[tmk_firmware.git] / common / command.h
index be739fafe822d17b3ceda61048df010f6cfd44d1..b57a6c1cedc504ae77862f5d1f12a9914ee8be22 100644 (file)
@@ -18,10 +18,16 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #ifndef COMMAND_H
 #define COMMAND
 
+/* TODO: Refactoring */
+typedef enum { ONESHOT, CONSOLE, MOUSEKEY } command_state_t;
+extern command_state_t command_state;
+
+/* This allows to extend commands. Return false when command is not processed. */
+bool command_extra(uint8_t code);
+bool command_console_extra(uint8_t code);
+
 #ifdef COMMAND_ENABLE
 bool command_proc(uint8_t code);
-/* This allows to extend commands. Return 0 when command is not processed. */
-bool command_extra(uint8_t code);
 #else
 #define command_proc(code)      false
 #endif