📄 keypad.lst
字号:
{m_cOSDMenu=idNULLMENU;m_cOSDFunc=0;m_cOSDEvent=CLOSEMENU;m_cItem=0;break;}
#endif
229 2
230 2 default:
231 2 m_cOSDMenu=idNULLMENU;m_cOSDFunc=0;m_cOSDEvent=CLOSEMENU;m_cItem=0;break;
232 2
233 2 }
234 1 return 1;
235 1
236 1 }
237
238 /*bit kyMENUEvent(void)
239 {
C51 COMPILER V7.50 KEYPAD 10/30/2006 16:14:45 PAGE 5
240 if(m_bKyBlocked)
241 return 0;
242
243 switch(m_cOSDFunc)
244 {
245 case 0:
246 m_cOSDFunc=idBRIGHTMENU;m_cOSDEvent=FUNCENTER;m_cItem=1;break;
247 case idBRIGHTMENU:
248 m_cOSDFunc=idCONTRASTMENU;m_cOSDEvent=FUNCENTER;m_cItem=2;break;
249 case idCONTRASTMENU:
250 m_cOSDFunc=idSHARP_VIDEO;m_cOSDEvent=FUNCENTER;m_cItem=3;break;
251 case idSHARP_VIDEO:
252 {
253 m_cOSDFunc=idSATMENU_VIDEO;
254 m_cOSDEvent=FUNCENTER;
255 m_cItem=4;
256 }
257 break;
258 case idSATMENU_VIDEO:
259 m_cOSDFunc=idHUEMENU_VIDEO;m_cOSDEvent=FUNCENTER;m_cItem=5;break;
260 case idHUEMENU_VIDEO:
261 m_cOSDEvent=CLOSEMENU;m_cItem=1;break;
262 }
263 return 1;
264
265 }*/
266
267 bit kyINCREASEEvent(void)
268 {
269 1 if(m_bKyBlocked) return 0;
270 1 if(!m_cOSDFunc&&m_bFactryMode) return 0;
271 1
272 1 if(m_cOSDFunc==0)
273 1 {
274 2 #ifdef TV
if((m_cSource&0x0F)==(isrcTV))
{
return IRUpKeyCtrl();//0;
}
#endif
280 2 }
281 1 else
282 1 m_cOSDEvent=FUNCADJ_IN;
283 1 return 1;
284 1 }
285
286 bit kyDECREASEEvent(void)
287 {
288 1 if(m_bKyBlocked) return 0;
289 1 if(!m_cOSDFunc&&m_bFactryMode) return 0;
290 1
291 1 if(m_cOSDFunc==0)
292 1 {
293 2 #ifdef TV
if((m_cSource&0x0F)==(isrcTV))
{
return IRDownKeyCtrl();//0;
}
#endif
299 2 }
300 1 else
301 1 m_cOSDEvent=FUNCADJ_DN;
C51 COMPILER V7.50 KEYPAD 10/30/2006 16:14:45 PAGE 6
302 1 return 1;
303 1 }
304 #if 0
bit kyEXITEvent(void)
{
if(m_bKyBlocked) return 0;
if(m_cOSDEvent && (m_cOSDEvent!=FUNCOUNT))
m_cOSDEvent=FUNCEXIT;
else
{
if(m_bFactryReady)
{
m_bFactryReady=0;
m_cFactryCnt=0;
}
else
{
m_cFactryCnt++;
if(m_cFactryCnt==3)
{
m_bFactryReady=1;
}
}
m_cOSDEvent=FUNCOUNT;
}
return 1;
}
#endif
331 bit kyPOWEREvent(void)
332 {
333 1
334 1 m_bFactryMode = 0;
335 1 if(m_bKyBlocked) m_bKyBlocked=0;
336 1 m_cOSDEvent=POWERMANAGE;
337 1
338 1 return 1;
339 1 }
340
341 bit kyIncPollCount(void)
342 {
343 1 if (m_wAccelPollCnt==0)
344 1 {
345 2 if((m_cOSDEvent==OPENMENU)||(m_cOSDEvent==FUNCENTER)||(m_cOSDEvent==CLOSEMENU)||(m_cOSDEvent==FUNCEXI
-T))
346 2 m_wAccelPollCnt=KEY_MENU_POLL_COUNT;
347 2 else if(m_cOSDEvent==POWERMANAGE)
348 2 m_wAccelPollCnt=KEY_POWER_SEL;
349 2 else
350 2 {
351 3 if(m_cOSDEvent==FUNCSELCT_IN || m_cOSDEvent==FUNCSELCT_DN )
352 3 m_wAccelPollCnt=KEY_SEL_POLL_COUNT;
353 3 else if((m_cOSDEvent==FUNCADJ_IN)||(m_cOSDEvent==FUNCADJ_DN))
354 3 m_wAccelPollCnt=KEY_VAL_POLL_COUNT;
355 3 }
356 2 return 0;
357 2 }
358 1 else
359 1 m_wAccelPollCnt--;
360 1 return 1;
361 1 }
362
C51 COMPILER V7.50 KEYPAD 10/30/2006 16:14:45 PAGE 7
363 #ifdef ROTATE
bit kyDismodeEvent()
{
/*
sbit LEFT_RIGHT = P0^0; 1: LEFTtoRIGHt, 0: RIGHTtoLEFT
sbit UP_DOWN = P0^1; 1: Down, 0: UP
*/
#ifdef _480_234 //KVGA
if((++Dis_Mode)>=VALID_DIR)
Dis_Mode=TOP_LEFT;
SET_Dismod();
#endif
#ifdef _800_480 //WVGA
if((++Dis_Mode)>=VALID_DIR)
Dis_Mode=TOP_LEFT;
SET_Dismod();
#endif
return 1;
}
#endif
388
389 /////////////////
390
391
392 /*
393 #ifdef TV
394
395 bit IRSetupKeyCtrl(void)
396 {
397 if(m_bKyBlocked) return 0;
398 if((m_cSource&0x0F)==(isrcTV))
399 {
400 if((m_cOSDFunc&0xF0)==idTVMENU_VIDEO)
401 {
402 m_cOSDEvent=FUNCEXIT;
403 }
404 else if((m_cOSDFunc==0))//&0xF0)==idMAINMENU)
405 {
406 m_cOSDFunc=idTVMENU_VIDEO;
407 m_cOSDEvent=FUNCENTER;
408 }
409 else return 0;
410 }
411 else
412 return 0;
413 return 1;
414 }
415
416 #endif
417 */
418 /*
419 bit IRUpKeyCtrl(void)
420 {
421
422 if(m_bKyBlocked) return 0;
423
424 #ifdef TV
C51 COMPILER V7.50 KEYPAD 10/30/2006 16:14:45 PAGE 8
425
426 if((m_cOSDFunc&0xF0)==idTVMENU_VIDEO)
427 {
428 m_cOSDEvent=FUNCSELCT_DN;
429 return 1;
430 }
431
432 #endif
433
434 switch(m_cOSDFunc)
435 {
436
437 #ifdef TV
438
439 case 0:
440 {
441 OSDExit();
442 AdjTVChannel(1,0);
443 return 0;
444 }
445
446 #endif
447 #ifdef LOAD_TIME
448 case idBRIGHTMENU:
449 m_cOSDFunc=idTIMEMENU;m_cOSDEvent=FUNCENTER;m_cItem=6;break;
450 #else
451 case idBRIGHTMENU:
452 m_cOSDFunc=idHUEMENU;m_cOSDEvent=FUNCENTER;m_cItem=5;break;
453 #endif
454 case idCONTRASTMENU:
455 {
456 m_cOSDFunc=idBRIGHTMENU;
457 m_cOSDEvent=FUNCENTER;
458 m_cItem=1;//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -