diff --git a/key/goKey.h b/key/goKey.h index 29dfa310..b1f79c67 100644 --- a/key/goKey.h +++ b/key/goKey.h @@ -172,23 +172,23 @@ int CheckKeyCodes(char* k, MMKeyCode *key){ int CheckKeyFlags(char* f, MMKeyFlags* flags){ if (!flags) { return -1; } - if ( strcmp(f, "alt") == 0 || strcmp(f, "ralt") == 0 || + if (strcmp(f, "alt") == 0 || strcmp(f, "ralt") == 0 || strcmp(f, "lalt") == 0 ) { *flags = MOD_ALT; } - else if( strcmp(f, "command") == 0 || strcmp(f, "cmd") == 0 || + else if(strcmp(f, "command") == 0 || strcmp(f, "cmd") == 0 || strcmp(f, "rcmd") == 0 || strcmp(f, "lcmd") == 0 ) { *flags = MOD_META; } - else if( strcmp(f, "control") == 0 || strcmp(f, "ctrl") == 0 || + else if(strcmp(f, "control") == 0 || strcmp(f, "ctrl") == 0 || strcmp(f, "rctrl") == 0 || strcmp(f, "lctrl") == 0 ) { *flags = MOD_CONTROL; } - else if( strcmp(f, "shift") == 0 || strcmp(f, "right_shift") == 0 || + else if(strcmp(f, "shift") == 0 || strcmp(f, "right_shift") == 0 || strcmp(f, "rshift") == 0 || strcmp(f, "lshift") == 0 ) { *flags = MOD_SHIFT; } - else if( strcmp(f, "none") == 0 ) { + else if(strcmp(f, "none") == 0 ) { *flags = (MMKeyFlags) MOD_NONE; } else { return -2; @@ -332,6 +332,7 @@ char* key_Toggles(char* k, char* keyArr[], int num) { return ""; } +// remove char* key_toggle(char* k, char* d, char* akey, char* keyT){ MMKeyFlags flags = (MMKeyFlags) MOD_NONE; MMKeyCode key; @@ -390,13 +391,6 @@ char* key_toggle(char* k, char* d, char* akey, char* keyT){ return ""; } -void type_string(char *str){ - typeStringDelayed(str, 0); -} - -void type_string_delayed(char *str, size_t cpm){ - typeStringDelayed(str, cpm); -} void set_keyboard_delay(size_t val){ keyboardDelay = val;