Allow the platform code to override the key names

This commit is contained in:
Paul Cercueil 2013-10-07 20:41:22 +02:00
parent c19e28f626
commit d685ce4625
4 changed files with 27 additions and 8 deletions

View file

@ -808,7 +808,8 @@ int in_config_parse_dev(const char *name)
if (in_devices[i].name == NULL)
return -1;
in_devices[i].key_names = DRV(drv_id).get_key_names(&in_devices[i].key_count);
in_devices[i].key_names = DRV(drv_id).get_key_names(&DRV(drv_id),
&in_devices[i].key_count);
in_devices[i].drv_id = drv_id;
if (i + 1 > in_dev_count)