rcinput: add support for TD remote control

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1087 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: c6663124c2
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-01-30 (Sun, 30 Jan 2011)
This commit is contained in:
Stefan Seyfried
2011-01-30 12:30:18 +00:00
parent 0bd05e1164
commit 9260cc429e
2 changed files with 116 additions and 2 deletions

View File

@@ -57,6 +57,9 @@
#define KEY_BLUE 0x191
#endif
#ifndef KEY_GAMES
#define KEY_GAMES 0x1a1 /* Media Select Games */
#endif
/* SAGEM remote controls have the following additional keys */
#ifndef KEY_TOPLEFT
@@ -84,6 +87,22 @@
#define KEY_ANALOGON KEY_FN_F7
#define KEY_ANALOGOFF KEY_FN_F8
#define KEY_TTTV KEY_FN_1
#define KEY_TTZOOM KEY_FN_2
#define KEY_REVEAL KEY_FN_D
/* only defined in newer kernels / headers... */
#ifndef KEY_ZOOMIN
#define KEY_ZOOMIN KEY_FN_E
#endif
#ifndef KEY_ZOOMOUT
#define KEY_ZOOMOUT KEY_FN_F
#endif
/* still available, even in 2.6.12:
#define KEY_FN_S
#define KEY_FN_B
*/
typedef uint32_t neutrino_msg_t;
typedef uint32_t neutrino_msg_data_t;
@@ -207,6 +226,17 @@ class CRCInput
RC_mute_off = KEY_MUTEOFF,
RC_analog_on = KEY_ANALOGON,
RC_analog_off = KEY_ANALOGOFF,
/* tripledragon keys */
RC_eject = KEY_EJECTCD,
RC_aux = KEY_AUX, /* 0x186 */
RC_timer = KEY_TIME,
RC_tttv = KEY_TTTV,
RC_ttzoom = KEY_TTZOOM,
RC_ttreveal = KEY_REVEAL,
RC_zoomin = KEY_ZOOMIN,
RC_zoomout = KEY_ZOOMOUT,
RC_timeout = 0xFFFFFFFF,
RC_nokey = 0xFFFFFFFE
};