diff --git a/src/conf.c b/src/conf.c index 6b78609..6ae8d5f 100644 --- a/src/conf.c +++ b/src/conf.c @@ -270,7 +270,7 @@ int conf_loadConfig(const char* file) { /* Set modifier, probably should be able to handle two at a time. */ if(mod != NULL) { - if(strcmp(mod, "lctrl") ==0) m = KMOD_LCTRL; + if(strcmp(mod, "lctrl") ==0) m = KMOD_LCTRL; else if(strcmp(mod, "rctrl") ==0) m = KMOD_RCTRL; else if(strcmp(mod, "lshift") ==0) m = KMOD_LSHIFT; else if(strcmp(mod, "rshift") ==0) m = KMOD_RSHIFT; @@ -278,6 +278,7 @@ int conf_loadConfig(const char* file) { else if(strcmp(mod, "ralt") ==0) m = KMOD_RALT; else if(strcmp(mod, "lmeta") ==0) m = KMOD_LMETA; else if(strcmp(mod, "rmeta") ==0) m = KMOD_RMETA; + else if(strcmp(mod, "any") ==0) m = KMOD_ALL; else { WARN("Unkown keybinding mod of type %s", mod); m = KMOD_NONE; diff --git a/src/input.c b/src/input.c index 5c50b5d..b30bbaa 100644 --- a/src/input.c +++ b/src/input.c @@ -227,7 +227,7 @@ int input_getKeybind(char* keybind, KeybindType* type, SDLMod* mod, int* reverse } /** - * + * @brief Get the description of the keybinding */ const char* input_getKeybindDescription(char* keybind) { int i;