Allow the platform code to override the key names
[libpicofe.git] / input.c
diff --git a/input.c b/input.c
index dc8bedd..ca9dac2 100644 (file)
--- a/input.c
+++ b/input.c
@@ -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)