X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=tmk_core%2Fcommon%2Fcommand.h;h=c38f2b9e809d19efe656a8fde299e64d955013fc;hb=5fcca9a226b2ab0b1335396e25c37e4b2a261a06;hp=92b18849bf31dcaeac1918084c0cb93503af8259;hpb=535daad3cd812df58f4630df202a447836ac3084;p=qmk_firmware.git diff --git a/tmk_core/common/command.h b/tmk_core/common/command.h index 92b18849b..c38f2b9e8 100644 --- a/tmk_core/common/command.h +++ b/tmk_core/common/command.h @@ -15,8 +15,9 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#ifndef COMMAND_H -#define COMMAND +#pragma once + +/* FIXME: Add doxygen comments for the behavioral defines in here. */ /* TODO: Refactoring */ typedef enum { ONESHOT, CONSOLE, MOUSEKEY } command_state_t; @@ -27,6 +28,7 @@ bool command_extra(uint8_t code); bool command_console_extra(uint8_t code); #ifdef COMMAND_ENABLE +uint8_t numkey2num(uint8_t code); bool command_proc(uint8_t code); #else #define command_proc(code) false @@ -152,5 +154,3 @@ bool command_proc(uint8_t code); #define XMAGIC_KC(key) KC_##key #define MAGIC_KC(key) XMAGIC_KC(key) - -#endif \ No newline at end of file