X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=tmk_core%2Fcommon%2Fcommand.h;h=052e251843889c84f1ed2ff583180f07b0b14be5;hb=b577b3b461f4be9d41ed56320d5cfc9205f54d50;hp=a729e4b1e438c73f28f0391ff4c341587d03875d;hpb=1a0bac8bccf0e156d2f3c5f14a7214f9677b6370;p=qmk_firmware.git diff --git a/tmk_core/common/command.h b/tmk_core/common/command.h index a729e4b1e..052e25184 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; @@ -33,6 +34,9 @@ bool command_proc(uint8_t code); #define command_proc(code) false #endif +#ifndef IS_COMMAND +#define IS_COMMAND() (get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT))) +#endif #ifndef MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS #define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true @@ -153,5 +157,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