📄 keypad.lst
字号:
m_cItem = 1;
return 1;
}
#endif
276 1 switch(m_cOSDFunc)
277 1 {
278 2 case 0:
279 2 m_cOSDFunc = idBRIGHTMENU;
280 2 m_cOSDEvent = FUNCENTER;
281 2 m_cItem = 1;
282 2 break;
283 2 #ifdef TV
case idBRIGHTMENU:
case idCONTRASTMENU:
case idSHARP_VIDEO:
case idSATMENU_VIDEO:
case idHUEMENU_VIDEO:
if((m_cSource&0x0F)==(isrcTV))
{
m_cOSDFunc = idTVMENU_VIDEO;
m_cOSDEvent = FUNCENTER;
m_cItem = 1;break;//Kuo
}
else
{
m_cOSDEvent = CLOSEMENU;
m_cItem = 1;
break;
}
#endif
302 2 default:
303 2 m_cOSDEvent = CLOSEMENU;
C51 COMPILER V7.06 KEYPAD 06/16/2005 10:05:41 PAGE 6
304 2 m_cItem = 1;
305 2 break;
306 2 }
307 1 return 1;
308 1 }
309
310 /*bit kyMENUEvent(void)
311 {
312 if(m_bKyBlocked)
313 return 0;
314
315 switch(m_cOSDFunc)
316 {
317 case 0:
318 m_cOSDFunc=idBRIGHTMENU;m_cOSDEvent=FUNCENTER;m_cItem=1;break;
319 case idBRIGHTMENU:
320 m_cOSDFunc=idCONTRASTMENU;m_cOSDEvent=FUNCENTER;m_cItem=2;break;
321 case idCONTRASTMENU:
322 m_cOSDFunc=idSHARP_VIDEO;m_cOSDEvent=FUNCENTER;m_cItem=3;break;
323 case idSHARP_VIDEO:
324 {
325 m_cOSDFunc=idSATMENU_VIDEO;
326 m_cOSDEvent=FUNCENTER;
327 m_cItem=4;
328 }
329 break;
330 case idSATMENU_VIDEO:
331 m_cOSDFunc=idHUEMENU_VIDEO;m_cOSDEvent=FUNCENTER;m_cItem=5;break;
332 case idHUEMENU_VIDEO:
333 m_cOSDEvent=CLOSEMENU;m_cItem=1;break;
334 }
335 return 1;
336
337 }*/
338
339 bit kyINCREASEEvent(void)
340 {
341 1 if(m_bKyBlocked) return 0;
342 1 if(!m_cOSDFunc&&m_bFactryMode) return 0;
343 1
344 1 if(m_cOSDFunc==0)
345 1 {
346 2 #ifdef TV
if((m_cSource&0x0F)==(isrcTV))
{
return IRUpKeyCtrl();//0;
}
#else
352 2 IRVolUpKeyCtrl();
353 2 #endif
354 2 }
355 1 else
356 1 {
357 2 m_cOSDEvent=FUNCADJ_IN;
358 2 }
359 1 return 1;
360 1 }
361
362 bit kyDECREASEEvent(void)
363 {
364 1 if(m_bKyBlocked) return 0;
365 1 if(!m_cOSDFunc&&m_bFactryMode) return 0;
C51 COMPILER V7.06 KEYPAD 06/16/2005 10:05:41 PAGE 7
366 1
367 1 if(m_cOSDFunc==0)
368 1 {
369 2 #ifdef TV
if((m_cSource&0x0F)==(isrcTV))
{
return IRDownKeyCtrl();//0;
}
#else
375 2 IRVolDownKeyCtrl();
376 2 #endif
377 2 }
378 1 else
379 1 {
380 2 m_cOSDEvent=FUNCADJ_DN;
381 2 }
382 1 return 1;
383 1 }
384 #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
411 bit kyPOWEREvent(void)
412 {
413 1 if(m_bFactryReady)
414 1 {
415 2 m_cOSDEvent=OPENMENU;
416 2 m_cOSDFunc=idFCTRYMENU;
417 2 m_cFactryCnt=0;
418 2 m_bFactryMode = 1;
419 2 m_bFactryReady=0;
420 2 }
421 1 else
422 1 {
423 2 m_bFactryMode = 0;
424 2 if(m_bKyBlocked) m_bKyBlocked=0;
425 2 m_cOSDEvent=POWERMANAGE;
426 2 }
427 1 return 1;
C51 COMPILER V7.06 KEYPAD 06/16/2005 10:05:41 PAGE 8
428 1 }
429
430 bit kyIncPollCount(void)
431 {
432 1 if(m_wAccelPollCnt==0)
433 1 {
434 2 if((m_cOSDEvent== OPENMENU)
435 2 ||(m_cOSDEvent == FUNCENTER)
436 2 ||(m_cOSDEvent == CLOSEMENU)
437 2 ||(m_cOSDEvent == FUNCEXIT))
438 2 {
439 3 m_wAccelPollCnt=KEY_MENU_POLL_COUNT;
440 3 }
441 2 else if(m_cOSDEvent==POWERMANAGE)
442 2 {
443 3 m_wAccelPollCnt=KEY_POWER_SEL;
444 3 }
445 2 else
446 2 {
447 3 if((m_cOSDEvent == FUNCSELCT_IN) || (m_cOSDEvent==FUNCSELCT_DN ))
448 3 {
449 4 m_wAccelPollCnt = 9; //KEY_SEL_POLL_COUNT;
450 4 }
451 3 else if((m_cOSDEvent == FUNCADJ_IN)||(m_cOSDEvent == FUNCADJ_DN)) //FUNCADJ_DN
452 3 {
453 4 m_wAccelPollCnt = 9; //KEY_VAL_POLL_COUNT;
454 4 }
455 3 }
456 2 return 0;
457 2 }
458 1 else
459 1 {
460 2 m_wAccelPollCnt--;
461 2 }
462 1 return 1;
463 1 }
464
465 #ifdef ROTATE
466
467 extern uCHAR Dis_Mode;
468 bit kyDismodeEvent()
469 {
470 1 /*
471 1 sbit LEFT_RIGHT = P0^0; 1: LEFTtoRIGHt, 0: RIGHTtoLEFT
472 1 sbit UP_DOWN = P0^1; 1: Down, 0: UP
473 1 */
474 1 #ifdef KVGA
475 1 if((Dis_Mode++)>=VALID_DIR)
476 1 Dis_Mode=TOP_LEFT;
477 1
478 1 SET_Dismod();
479 1 #endif
480 1
481 1 #ifdef WVGA
if((Dis_Mode++)>=VALID_DIR)
Dis_Mode=TOP_LEFT;
SET_Dismod();
#endif
487 1
488 1 return 1;
489 1 }
C51 COMPILER V7.06 KEYPAD 06/16/2005 10:05:41 PAGE 9
490
491 #endif
492
493 /////////////////
494
495
496 /*
497 #ifdef TV
498
499 bit IRSetupKeyCtrl(void)
500 {
501 if(m_bKyBlocked) return 0;
502 if((m_cSource&0x0F)==(isrcTV))
503 {
504 if((m_cOSDFunc&0xF0)==idTVMENU_VIDEO)
505 {
506 m_cOSDEvent=FUNCEXIT;
507 }
508 else if((m_cOSDFunc==0))//&0xF0)==idMAINMENU)
509 {
510 m_cOSDFunc=idTVMENU_VIDEO;
511 m_cOSDEvent=FUNCENTER;
512 }
513 else return 0;
514 }
515 else
516 return 0;
517 return 1;
518 }
519
520 #endif
521 */
522
523 bit IRUpKeyCtrl(void)
524 {
525 1 if(m_bKyBlocked) return 0;
526 1 #ifdef TV
if((m_cOSDFunc&0xF0)==idTVMENU_VIDEO)
m_cOSDEvent=FUNCSELCT_DN;
#endif
530 1 switch(m_cOSDFunc)
531 1 {
532 2 #ifdef TV
case 0:
OSDExit();
AdjTVChannel(1, 0);
return 0;
#endif
538 2 case idLANGUAGE_MENU:
539 2 m_cOSDFunc = idHUEMENU_VIDEO;
540 2 m_cOSDEvent = FUNCSEL_UP;
541 2 m_cItem = 5;
542 2 break;
543 2 case idBRIGHTMENU:
544 2 m_cOSDFunc = idLANGUAGE_MENU; //idHUEMENU_VIDEO;
545 2 m_cOSDEvent = FUNCSEL_UP;
546 2 m_cItem = 6;
547 2 break;
548 2 case idCONTRASTMENU:
549 2 m_cOSDFunc = idBRIGHTMENU;
550 2 m_cOSDEvent = FUNCSEL_UP;
551 2 m_cItem = 1;//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -