mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed paging through lists with repeated Left/Right keys
This commit is contained in:
parent
cfbf1eb98f
commit
5ddf78ade1
1
HISTORY
1
HISTORY
@ -2089,3 +2089,4 @@ Video Disk Recorder Revision History
|
||||
|
||||
- Fixed minimum lifespan of deleted recordings (thanks to Jaakko Hyvätti).
|
||||
- Updated French OSD texts (thanks to Olivier Jacques <jacquesolivier@hotmail.com>).
|
||||
- Fixed paging through lists with repeated Left/Right keys.
|
||||
|
7
remote.c
7
remote.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: remote.c 1.36 2002/12/15 15:58:59 kls Exp $
|
||||
* $Id: remote.c 1.37 2003/05/01 14:44:55 kls Exp $
|
||||
*/
|
||||
|
||||
#include "remote.h"
|
||||
@ -123,6 +123,11 @@ bool cRemote::Put(const char *Code, bool Repeat, bool Release)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool cRemote::HasKeys(void)
|
||||
{
|
||||
return in != out && !(keys[out] & k_Repeat);
|
||||
}
|
||||
|
||||
eKeys cRemote::Get(int WaitMs, char **UnknownCode)
|
||||
{
|
||||
for (;;) {
|
||||
|
4
remote.h
4
remote.h
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: remote.h 1.26 2003/04/27 12:05:48 kls Exp $
|
||||
* $Id: remote.h 1.27 2003/05/01 14:45:00 kls Exp $
|
||||
*/
|
||||
|
||||
#ifndef __REMOTE_H
|
||||
@ -45,7 +45,7 @@ public:
|
||||
static bool Put(eKeys Key);
|
||||
static bool PutMacro(eKeys Key);
|
||||
static const char *GetPlugin(void) { return plugin; }
|
||||
static bool HasKeys(void) { return in != out; }
|
||||
static bool HasKeys(void);
|
||||
static eKeys Get(int WaitMs = 1000, char **UnknownCode = NULL);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user