[android] expose vid/pid to the frontend so the value can be saved to autoconf files

This commit is contained in:
radius 2015-07-22 00:22:57 -05:00
parent 11e8a498df
commit 766b6b811e

View File

@ -678,6 +678,9 @@ static void handle_hotplug(android_input_t *android,
params.idx = *port;
params.vid = vendorId;
params.pid = productId;
settings->input.pid[*port] = params.pid;
settings->input.vid[*port] = params.vid;
strlcpy(params.driver, android_joypad.ident, sizeof(params.driver));
autoconfigured = input_config_autoconfigure_joypad(&params);