neutrino: remove special Tripledragon input handling

With the new input device, no need for special casing in neutrino.

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2052 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
seife
2012-01-09 20:32:26 +00:00
parent babf8ec7c8
commit 0fa97c1652
2 changed files with 17 additions and 86 deletions

View File

@@ -19,6 +19,11 @@
#include <dmx.h>
#include <video.h>
/* same as in rcinput.h... */
#define KEY_TTTV KEY_FN_1
#define KEY_TTZOOM KEY_FN_2
#define KEY_REVEAL KEY_FN_D
extern cVideo * videoDecoder;
static pthread_t ttx_sub_thread;
@@ -6334,7 +6339,7 @@ void DecodePage()
/******************************************************************************
* GetRCCode *
******************************************************************************/
#if !HAVE_TRIPLEDRAGON
#if 1
int GetRCCode()
{
struct input_event ev;
@@ -6378,7 +6383,17 @@ int GetRCCode()
case KEY_VOLUMEUP: RCCode = RC_PLUS; break;
case KEY_VOLUMEDOWN: RCCode = RC_MINUS; break;
case KEY_MUTE: RCCode = RC_MUTE; break;
#if !HAVE_TRIPLEDRAGON
/* on CS, change transparent mode with TEXT key */
case KEY_TEXT: RCCode = RC_TEXT; break;
#else
/* on TD, cycle split screen mode with TTX key
* - the TD has a special key for transparent mode */
case KEY_TEXT: RCCode = RC_MINUS; break;
#endif
case KEY_TTTV: RCCode = RC_MUTE; break;
case KEY_TTZOOM: RCCode = RC_PLUS; break;
case KEY_REVEAL: RCCode = RC_HELP; break;
//case KEY_HELP: RCCode = RC_HELP; break;
case KEY_INFO: RCCode = RC_HELP; break;
case KEY_MENU: RCCode = RC_DBOX; break;
@@ -6402,6 +6417,7 @@ printf("[tuxtxt] new key, code %X\n", RCCode);
return 0;
}
#else
/* this is obsolete and can soon be removed */
int GetRCCode()
{
static unsigned short LastKey = -1;