notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
quick support for doeblesize 'small' font
[picodrive.git]
/
platform
/
common
/
input.c
diff --git
a/platform/common/input.c
b/platform/common/input.c
index
0fe8dc1
..
81f6e16
100644
(file)
--- a/
platform/common/input.c
+++ b/
platform/common/input.c
@@
-257,8
+257,8
@@
int in_update_keycode(int *dev_id_out, int *is_down_out, int timeout_ms)
int result = -1, dev_id = 0, is_down, result_menu;
int fds_hnds[IN_MAX_DEVS];
int i, ret, count = 0;
int result = -1, dev_id = 0, is_down, result_menu;
int fds_hnds[IN_MAX_DEVS];
int i, ret, count = 0;
+ in_drv_t *drv = NULL;
unsigned int ticks;
unsigned int ticks;
- in_drv_t *drv;
if (in_have_async_devs) {
result = in_update_kc_async(&dev_id, &is_down, timeout_ms);
if (in_have_async_devs) {
result = in_update_kc_async(&dev_id, &is_down, timeout_ms);
@@
-426,6
+426,10
@@
const char *in_get_dev_name(int dev_id, int must_be_active, int skip_pfix)
return NULL;
name = in_devices[dev_id].name;
return NULL;
name = in_devices[dev_id].name;
+ if (name == NULL || !skip_pfix)
+ return name;
+
+ /* skip prefix */
tmp = strchr(name, ':');
if (tmp != NULL)
name = tmp + 1;
tmp = strchr(name, ':');
if (tmp != NULL)
name = tmp + 1;