Disable Mousekey Command interface when Constant speed is enabled (#7017)

This commit is contained in:
Drashna Jaelre 2020-05-19 04:29:20 -07:00 committed by GitHub
parent 15dd05c402
commit ef5fad137b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
# include "backlight.h" # include "backlight.h"
#endif #endif
#ifdef MOUSEKEY_ENABLE #if defined(MOUSEKEY_ENABLE) && !defined(MK_3_SPEED)
# include "mousekey.h" # include "mousekey.h"
#endif #endif
@ -57,7 +57,7 @@ static void print_version(void);
static void print_status(void); static void print_status(void);
static bool command_console(uint8_t code); static bool command_console(uint8_t code);
static void command_console_help(void); static void command_console_help(void);
#ifdef MOUSEKEY_ENABLE #if defined(MOUSEKEY_ENABLE) && !defined(MK_3_SPEED)
static bool mousekey_console(uint8_t code); static bool mousekey_console(uint8_t code);
static void mousekey_console_help(void); static void mousekey_console_help(void);
#endif #endif
@ -78,7 +78,7 @@ bool command_proc(uint8_t code) {
else else
return (command_console_extra(code) || command_console(code)); return (command_console_extra(code) || command_console(code));
break; break;
#ifdef MOUSEKEY_ENABLE #if defined(MOUSEKEY_ENABLE) && !defined(MK_3_SPEED)
case MOUSEKEY: case MOUSEKEY:
mousekey_console(code); mousekey_console(code);
break; break;
@ -538,7 +538,7 @@ static bool command_console(uint8_t code) {
case KC_ESC: case KC_ESC:
command_state = ONESHOT; command_state = ONESHOT;
return false; return false;
#ifdef MOUSEKEY_ENABLE #if defined(MOUSEKEY_ENABLE) && !defined(MK_3_SPEED)
case KC_M: case KC_M:
mousekey_console_help(); mousekey_console_help();
print("M> "); print("M> ");
@ -553,7 +553,7 @@ static bool command_console(uint8_t code) {
return true; return true;
} }
#ifdef MOUSEKEY_ENABLE #if defined(MOUSEKEY_ENABLE) && !defined(MK_3_SPEED)
/*********************************************************** /***********************************************************
* Mousekey console * Mousekey console
***********************************************************/ ***********************************************************/