use Button<num> instead of just <num> for specifying buttons by number
This commit is contained in:
parent
038e611974
commit
50fba4bca8
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ gboolean translate_button(char *str, guint *state, guint *button)
|
|||
else if (!g_ascii_strcasecmp("Right", l)) *button = 3;
|
||||
else if (!g_ascii_strcasecmp("Up", l)) *button = 4;
|
||||
else if (!g_ascii_strcasecmp("Down", l)) *button = 5;
|
||||
else *button = atoi(l);
|
||||
else if (!g_ascii_strncasecmp("Button", l, 6)) *button = atoi(l+6);
|
||||
if (!*button) {
|
||||
g_warning("Invalid button '%s' in pointer binding.", l);
|
||||
goto translation_fail;
|
||||
|
|
Loading…
Reference in a new issue