diff options
author | phintuka <phintuka> | 2010-11-17 13:58:50 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2010-11-17 13:58:50 +0000 |
commit | ce919c48f1c216abbc9988f906903b63699ab1f5 (patch) | |
tree | 0bd135d30791d7653e2a14210bee947a630f8d21 | |
parent | acdb181d60ca6fd3e569d700a6ae01b11f40d572 (diff) | |
download | xineliboutput-ce919c48f1c216abbc9988f906903b63699ab1f5.tar.gz xineliboutput-ce919c48f1c216abbc9988f906903b63699ab1f5.tar.bz2 |
Allow using console keyboard ("KBD" remote) to type letters directly (vdr KBDKEY() ...)
-rw-r--r-- | frontend.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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])); } |