Merge pull request #2017 from lakkatv/autoconf

Fix autoconfig saving for udev
This commit is contained in:
Twinaphex 2015-07-30 00:27:41 +02:00
commit 77245e9623

View File

@ -289,6 +289,9 @@ static int udev_add_pad(struct udev_device *dev, unsigned p, int fd, const char
strlcpy(params.name, pad->ident, sizeof(params.name));
params.vid = pad->vid;
params.pid = pad->pid;
settings->input.pid[p] = params.pid;
settings->input.vid[p] = params.vid;
strlcpy(settings->input.device_names[p], params.name, sizeof(settings->input.device_names[p]));
strlcpy(params.driver, udev_joypad.ident, sizeof(params.driver));
input_config_autoconfigure_joypad(&params);