diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-12-04 13:37:59 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-12-04 13:37:59 +0100 |
commit | 551b46cab1e6309a9cf077df76879e5a5c250a51 (patch) | |
tree | b35d52b1f77da290023bf719b632bbbfeb850e30 /menu.c | |
parent | 85b9c2f370dfd5fc361f34b5984959b522ed108f (diff) | |
download | vdr-551b46cab1e6309a9cf077df76879e5a5c250a51.tar.gz vdr-551b46cab1e6309a9cf077df76879e5a5c250a51.tar.bz2 |
Implemented Play/Pause key
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 2.66 2012/12/04 09:50:39 kls Exp $ + * $Id: menu.c 2.67 2012/12/04 13:17:49 kls Exp $ */ #include "menu.h" @@ -2454,6 +2454,7 @@ eOSState cMenuRecordings::ProcessKey(eKeys Key) if (state == osUnknown) { switch (Key) { + case kPlayPause: case kPlay: case kOk: return Play(); case kRed: return (helpKeys > 1 && RecordingCommands.Count()) ? Commands() : Play(); @@ -4685,6 +4686,7 @@ void cReplayControl::TimeSearchProcess(eKeys Key) timeSearchActive = false; } break; + case kPlayPause: case kPlay: case kUp: case kPause: @@ -4865,6 +4867,12 @@ eOSState cReplayControl::ProcessKey(eKeys Key) TimeSearchProcess(Key); return osContinue; } + if (Key == kPlayPause) { + bool Play, Forward; + int Speed; + GetReplayMode(Play, Forward, Speed); + Key = Play ? kPause : kPlay; + } bool DoShowMode = true; switch (int(Key)) { // Positioning: |