?? keyremo.lst
字號:
C51 COMPILER V7.50 KEYREMO 08/20/2007 10:23:30 PAGE 1
C51 COMPILER V7.50, COMPILATION OF MODULE KEYREMO
OBJECT MODULE PLACED IN keyremo.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE keyremo.c COMPACT OPTIMIZE(9,SIZE)
line level source
1 //
2 // KeyRemo.h
3 // Default function for Key Input and Remocon Input
4 //
5 //=============================================================================
6 // Operation Key Mapping
7 //=============================================================================
8 #include "config.h"
9 #include "typedefs.h"
10 #include "keyremo.h"
11 #include "measure.h"
12 #include "audio.h"
13 #include "dispinfo.h"
14 #include "main.h"
15 #include "osdmenu.h"
16 #include "debug.h"
17 #include "cc.h"
18 #include "tuner.h"
19 #include "printf.h"
20
21 #ifdef SUPPORT_CCD_VCHIP
extern bit VchipWindow_On;
#endif
24 extern bit OnChangingValue;
25 extern bit RepeatKey;
26 #ifdef SUPPORT_DEBUG
extern bit Debug_On;
#endif
29 extern IDATA BYTE PcMode;
30 extern PDATA WORD OSDLastKeyInTime; // in ms
31 extern bit DisplayInputHold;
32 extern DATA WORD tic_pc;
33 extern bit KeyReady;
34 extern DATA BYTE Key;
35
36 extern IDATA BYTE RemoDataReady,RemoSystemCode, RemoDataCode;
37 extern bit ChannelEdit_Flag;
38 extern bit ChannelEdit_on;
39
40 #if (defined SUPPORT_CCD_VCHIP) || (defined SUPPORT_TV) || (defined SUPPORT_TELETEXT)
BYTE ToNumber( BYTE chncode )
{
switch( chncode ) {
case REMO_NUM0: return 0;
case REMO_NUM1: return 1;
case REMO_NUM2: return 2;
case REMO_NUM3: return 3;
case REMO_NUM4: return 4;
case REMO_NUM5: return 5;
case REMO_NUM6: return 6;
case REMO_NUM7: return 7;
case REMO_NUM8: return 8;
case REMO_NUM9: return 9;
default: return 0xff;
C51 COMPILER V7.50 KEYREMO 08/20/2007 10:23:30 PAGE 2
}
}
#endif
59
60 void RemoMenu_MenuKey(void)
61 {
62 1 if( GetDisplayedOSD() & MENU ) OSDHighMenu();
63 1 else OpenOSDMenu();
64 1 }
65
66 void RemoChnUp_UpKey(void)
67 {
68 1
69 1 #ifdef SUPPORT_DEBUG
if( Debug_On ) {
DebugWindowData(UP);
return;
}
else
#endif
76 1 if( GetDisplayedOSD() & MENU )
77 1 #ifdef PAL_TV
if( ChannelEdit_Flag) {
if( ChannelEdit_on ) ChannelEdit_Char(UP);
else {
UpDownTVChannel(DN);
ChannelEdit_display();
}
}
else
#endif
87 1 #ifdef SUPPORT_CCD_VCHIP
if( VchipWindow_On == 1 ) ChangeVchip_LevelCursor(DN);
else
#endif
91 1 OSDCursorMove(UP);
92 1 #ifdef SUPPORT_PC
93 1 else if( GetInputSelection()==PC ) AutoAdjust();
94 1
95 1 /*{
96 1 ClearOSDInfo();
97 1 DisplayAutoAdjust();
98 1 DetectAndSetForVGAInput(0);
99 1 ClearAutoAdjust();
100 1 LCDPowerON(0); }*/
101 1 #endif
102 1
103 1 #ifdef SUPPORT_TV
else if( GetInputSelection() == TV )
UpDownTVChannel(UP);
#endif
107 1 else
108 1 return;
109 1
110 1 }
111
112 void RemoChnDn_DnKey(void)
113 {
114 1
115 1 #ifdef SUPPORT_DEBUG
if( Debug_On ) {
DebugWindowData(DN);
C51 COMPILER V7.50 KEYREMO 08/20/2007 10:23:30 PAGE 3
return;
}
else
#endif
122 1 if( GetDisplayedOSD() & MENU ) {
123 2 #ifdef PAL_TV
if( ChannelEdit_Flag){
if( ChannelEdit_on ) ChannelEdit_Char(DN);
else {
UpDownTVChannel(UP);
ChannelEdit_display();
}
}
else
#endif
133 2 #ifdef SUPPORT_CCD_VCHIP
if( VchipWindow_On == 1 ) ChangeVchip_LevelCursor(UP);
else
#endif
137 2 OSDCursorMove(DN);
138 2 }
139 1 #ifdef SUPPORT_TV
else if( GetInputSelection() == TV ) UpDownTVChannel(DN);
#endif
142 1 else
143 1 return;
144 1
145 1 }
146
147 void RemoVolUp_RightKey(void)
148 {
149 1 #ifdef SUPPORT_DEBUG
if( Debug_On ) {
DebugWindowCursor(UP);
return;
}
else
#endif
156 1 if( GetDisplayedOSD() & MENU ) {
157 2 if( OnChangingValue ) OSDValueUpDn(UP );
158 2 #ifdef PAL_TV
else if( ChannelEdit_Flag ) ChannelEdit_Cursor (UP);
#endif
161 2 #ifdef SUPPORT_CCD_VCHIP
else if( VchipWindow_On == 1 ) ChangeVchip_ContentCursor(UP);
#endif
164 2 else OSDSelect();
165 2 }
166 1 else
167 1 {
168 2 ChangeVol(1);
169 2 DisplayVol();
170 2 }
171 1 }
172
173 void RemoVolDn_LeftKey(void)
174 {
175 1 #ifdef SUPPORT_DEBUG
if( Debug_On ) {
DebugWindowCursor(DN);
return;
}
C51 COMPILER V7.50 KEYREMO 08/20/2007 10:23:30 PAGE 4
else
#endif
182 1 if( GetDisplayedOSD() & MENU ) {
183 2 if( OnChangingValue ) OSDValueUpDn(DN );
184 2 #ifdef PAL_TV
else if( ChannelEdit_Flag ) ChannelEdit_Cursor (DN);
#endif
187 2 #ifdef SUPPORT_CCD_VCHIP
else if( VchipWindow_On == 1 ) ChangeVchip_ContentCursor(DN);
#endif
190 2 else OSDHighMenu();
191 2 }
192 1 else
193 1 {
194 2 ChangeVol(-1);
195 2 DisplayVol();
196 2 }
197 1 }
198
199
200 //=============================================================================
201 //
202 //=============================================================================
203 BYTE ActionRemo(BYTE _RemoDataCode, BYTE AutoKey)
204 {
205 1
206 1 SetOSDLastKeyInTime();
207 1
208 1 #if (defined SUPPORT_PC) || (defined SUPPORT_DTV)
209 1
210 1 if( (PcMode==EE_PC_NO_SIGNAL) && (GetInputSelection()==PC || GetInputSelection()==DTV) ) {
211 2 if( PcMode==EE_PC_NO_SIGNAL ) {
212 3 switch (_RemoDataCode) {
213 4 case REMO_INPUT:
214 4 //case REMO_STANDBY:
215 4 break;
216 4
217 4 default:
218 4 tic_pc = 0;
219 4 return 1;
220 4 }
221 3 }
222 2 }
223 1 #endif // SUPPORT_PC
224 1
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -