notaz.gp2x.de
/
libpicofe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3b6f13
)
bugfix2
author
notaz
<notasas@gmail.com>
Wed, 4 Mar 2009 22:06:40 +0000
(22:06 +0000)
committer
notaz
<notasas@gmail.com>
Wed, 4 Mar 2009 22:06:40 +0000
(22:06 +0000)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@643
be3aeb3a
-fb24-0410-a615-
afba39da0efa
common/input.c
patch
|
blob
|
blame
|
history
diff --git
a/common/input.c
b/common/input.c
index
1dae2bd
..
0f6b6e4
100644
(file)
--- a/
common/input.c
+++ b/
common/input.c
@@
-426,9
+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;
- if (name == NULL)
- return
NULL
;
+ if (name == NULL
|| !skip_pfix
)
+ return
name
;
+ /* skip prefix */
tmp = strchr(name, ':');
if (tmp != NULL)
name = tmp + 1;