mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-07 07:38:04 -04:00
Allow the platform code to override the key names
This commit is contained in:
parent
c19e28f626
commit
d685ce4625
4 changed files with 27 additions and 8 deletions
|
@ -290,9 +290,13 @@ static void in_evdev_free(void *drv_data)
|
|||
}
|
||||
|
||||
static const char * const *
|
||||
in_evdev_get_key_names(int *count)
|
||||
in_evdev_get_key_names(const in_drv_t *drv, int *count)
|
||||
{
|
||||
const struct in_pdata *pdata = drv->pdata;
|
||||
*count = KEY_CNT;
|
||||
|
||||
if (pdata->key_names)
|
||||
return pdata->key_names;
|
||||
return in_evdev_keys;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue