summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2010-11-17 13:58:50 +0000
committerphintuka <phintuka>2010-11-17 13:58:50 +0000
commitce919c48f1c216abbc9988f906903b63699ab1f5 (patch)
tree0bd135d30791d7653e2a14210bee947a630f8d21
parentacdb181d60ca6fd3e569d700a6ae01b11f40d572 (diff)
downloadxineliboutput-ce919c48f1c216abbc9988f906903b63699ab1f5.tar.gz
xineliboutput-ce919c48f1c216abbc9988f906903b63699ab1f5.tar.bz2
Allow using console keyboard ("KBD" remote) to type letters directly (vdr KBDKEY() ...)
-rw-r--r--frontend.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/frontend.c b/frontend.c
index d3716ddf..6ab5967a 100644
--- a/frontend.c
+++ b/frontend.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: frontend.c,v 1.90 2010-08-25 09:50:15 phintuka Exp $
+ * $Id: frontend.c,v 1.91 2010-11-17 13:58:50 phintuka Exp $
*
*/
@@ -97,6 +97,14 @@ void cXinelibThread::KeypressHandler(const char *keymap, const char *key,
// put key to remote queue
if (key[0]) {
if (!remote->Put(key, repeat, release)) {
+ if (!strcmp(keymap, "KBD")) {
+ uint64_t value = 0;
+ sscanf(key, "%"PRIX64, &value);
+ if (value) {
+ remote->cRemote::Put(KBDKEY(value));
+ return;
+ }
+ }
if (!key[1]) {
remote->cRemote::Put(KBDKEY(key[0]));
}