notaz.gp2x.de
/
libpicofe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
plat: avoid MAP_FIXED
[libpicofe.git]
/
linux
/
in_evdev.c
diff --git
a/linux/in_evdev.c
b/linux/in_evdev.c
index
08e3596
..
ff714ce
100644
(file)
--- a/
linux/in_evdev.c
+++ b/
linux/in_evdev.c
@@
-290,9
+290,13
@@
static void in_evdev_free(void *drv_data)
}
static const char * const *
}
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;
*count = KEY_CNT;
+
+ if (pdata->key_names)
+ return pdata->key_names;
return in_evdev_keys;
}
return in_evdev_keys;
}