Skip to content

Commit

Permalink
remove type_string
Browse files Browse the repository at this point in the history
  • Loading branch information
vcaesar committed Jan 26, 2022
1 parent 8ad853d commit 70f6c27
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions key/goKey.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 70f6c27

Please sign in to comment.