mirror of
https://github.com/X11Libre/xf86-input-joystick.git
synced 2026-04-14 11:54:23 +00:00
Allow '+' as separator for key mapping as in "key=Alt_L+Tab"
This commit is contained in:
@@ -178,6 +178,7 @@ jstkParseButtonOption(const char* org,
|
||||
for (value = 0; value < MAXKEYSPERBUTTON; value++) if (current != NULL) {
|
||||
unsigned key;
|
||||
next = strchr(current, ',');
|
||||
if (!next) next = strchr(current, '+');
|
||||
if (next) *(next++) = '\0';
|
||||
#ifdef _STRKEYSYM_H_INCLUDED_
|
||||
key = XStringToKeysym(current);
|
||||
@@ -284,6 +285,7 @@ jstkParseAxisOption(const char* org,
|
||||
for (value = 0; value < MAXKEYSPERBUTTON; value++)
|
||||
if (current != NULL) {
|
||||
next = strchr(current, ',');
|
||||
if (!next) next = strchr(current, '+');
|
||||
if (next) *(next++) = '\0';
|
||||
|
||||
#ifdef _STRKEYSYM_H_INCLUDED_
|
||||
@@ -313,6 +315,7 @@ jstkParseAxisOption(const char* org,
|
||||
for (value = 0; value < MAXKEYSPERBUTTON; value++)
|
||||
if (current != NULL) {
|
||||
next = strchr(current, ',');
|
||||
if (!next) next = strchr(current, '+');
|
||||
if (next) *(next++) = '\0';
|
||||
key = strtol(current, NULL, 0);
|
||||
#ifdef _STRKEYSYM_H_INCLUDED_
|
||||
|
||||
Reference in New Issue
Block a user