1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed learning keyboard remote control codes

This commit is contained in:
Klaus Schmidinger 2014-02-15 12:43:25 +01:00
parent 8b2f500d2a
commit 0238234c52
3 changed files with 5 additions and 3 deletions

View File

@ -2888,6 +2888,7 @@ Lars Hanisch <dvb@flensrocker.de>
for making the Recordings menu able to be called with a cRecordingFilter, which allows
the caller to have it display only a certain subset of the recordings
for adding handling UTF-8 'umlaut' characters to cKbdRemote
for fixing learning keyboard remote control codes
Alex Lasnier <alex@fepg.org>
for adding tuning support for ATSC devices

View File

@ -8170,7 +8170,7 @@ Video Disk Recorder Revision History
- Fixed a superfluous call to the skin's SetRecording() function after renaming a
recording (reported by Christoph Haubrich).
2014-02-08: Version 2.1.5
2014-02-15: Version 2.1.5
- Now checking whether the primary device actually has a decoder before retuning the
current channel after a change in its parameters. This fixes broken recordings on
@ -8196,3 +8196,4 @@ Video Disk Recorder Revision History
Clang 3.4.1 (suggested by Tony Houghten).
- Replaced the NULL pointer assignment in ~cReceiver() to force a segfault with
a call to abort() (suggested by Tony Houghten).
- Fixed learning keyboard remote control codes (thanks to Lars Hanisch).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: remote.c 3.1 2013/12/25 12:45:43 kls Exp $
* $Id: remote.c 3.2 2014/02/15 12:40:39 kls Exp $
*/
#include "remote.h"
@ -298,7 +298,7 @@ int cKbdRemote::MapCodeToFunc(uint64_t Code)
void cKbdRemote::PutKey(uint64_t Code, bool Repeat, bool Release)
{
if (rawMode || !Put(Code, Repeat, Release)) {
if (rawMode || (!Put(Code, Repeat, Release) && !IsLearning())) {
if (int func = MapCodeToFunc(Code))
Put(KBDKEY(func), Repeat, Release);
}