📄 keypad.lst
字号:
247 2 SetOPTiming(); // Add by Sherman 05'11'18
248 2 OSDShowRatio();
249 2 }
250 1 return 1;
251 1 }
252
253 bit kyMENUEvent(void)
254 {
255 1 if(m_bKyBlocked)
256 1 return 0;
257 1
258 1 switch(m_cOSDMenu)
259 1 {
260 2 case idNULLMENU:
261 2 m_cOSDMenu=idVIDEOMENU;m_cOSDFunc=idBRIGHTMENU;m_cOSDEvent=OPENMENU;m_cItem=1;break;
262 2
263 2 #ifdef TV
case idVIDEOMENU:
if((m_cSource&0x0F)==(isrcTV))
{
m_cOSDMenu=idTVMENU;m_cOSDFunc=idBRIGHTMENU;m_cOSDEvent=OPENMENU;m_cItem=1;break;}
else
{m_cOSDMenu=idNULLMENU;m_cOSDFunc=0;m_cOSDEvent=CLOSEMENU;m_cItem=0;break;}
#endif
272 2
273 2 default:
274 2 m_cOSDMenu=idNULLMENU;m_cOSDFunc=0;m_cOSDEvent=CLOSEMENU;m_cItem=0;break;
275 2
276 2 }
277 1 return 1;
278 1
279 1 }
280
281 /*bit kyMENUEvent(void)
282 {
283 if(m_bKyBlocked)
284 return 0;
285
286 switch(m_cOSDFunc)
287 {
288 case 0:
289 m_cOSDFunc=idBRIGHTMENU;m_cOSDEvent=FUNCENTER;m_cItem=1;break;
290 case idBRIGHTMENU:
291 m_cOSDFunc=idCONTRASTMENU;m_cOSDEvent=FUNCENTER;m_cItem=2;break;
292 case idCONTRASTMENU:
293 m_cOSDFunc=idSHARP_VIDEO;m_cOSDEvent=FUNCENTER;m_cItem=3;break;
294 case idSHARP_VIDEO:
295 {
296 m_cOSDFunc=idSATMENU_VIDEO;
297 m_cOSDEvent=FUNCENTER;
298 m_cItem=4;
299 }
300 break;
301 case idSATMENU_VIDEO:
302 m_cOSDFunc=idHUEMENU_VIDEO;m_cOSDEvent=FUNCENTER;m_cItem=5;break;
C51 COMPILER V7.50 KEYPAD 01/12/2006 13:31:13 PAGE 6
303 case idHUEMENU_VIDEO:
304 m_cOSDEvent=CLOSEMENU;m_cItem=1;break;
305 }
306 return 1;
307
308 }*/
309
310 bit kyINCREASEEvent(void)
311 {
312 1 if(m_bKyBlocked) return 0;
313 1 if(!m_cOSDFunc&&m_bFactryMode) return 0;
314 1
315 1 if(m_cOSDFunc==0)
316 1 {
317 2 #ifdef TV
if((m_cSource&0x0F)==(isrcTV))
{
return IRUpKeyCtrl();//0;
}
#endif
323 2 }
324 1 else
325 1 m_cOSDEvent=FUNCADJ_IN;
326 1 return 1;
327 1 }
328
329 bit kyDECREASEEvent(void)
330 {
331 1 if(m_bKyBlocked) return 0;
332 1 if(!m_cOSDFunc&&m_bFactryMode) return 0;
333 1
334 1 if(m_cOSDFunc==0)
335 1 {
336 2 #ifdef TV
if((m_cSource&0x0F)==(isrcTV))
{
return IRDownKeyCtrl();//0;
}
#endif
342 2 }
343 1 else
344 1 m_cOSDEvent=FUNCADJ_DN;
345 1 return 1;
346 1 }
347 #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)
C51 COMPILER V7.50 KEYPAD 01/12/2006 13:31:13 PAGE 7
{
m_bFactryReady=1;
}
}
m_cOSDEvent=FUNCOUNT;
}
return 1;
}
#endif
374 bit kyPOWEREvent(void)
375 {
376 1
377 1 m_bFactryMode = 0;
378 1 if(m_bKyBlocked) m_bKyBlocked=0;
379 1 m_cOSDEvent=POWERMANAGE;
380 1
381 1 return 1;
382 1 }
383
384 bit kyIncPollCount(void)
385 {
386 1 if (m_wAccelPollCnt==0)
387 1 {
388 2 if((m_cOSDEvent==OPENMENU)||(m_cOSDEvent==FUNCENTER)||(m_cOSDEvent==CLOSEMENU)||(m_cOSDEvent==FUNCEXI
-T))
389 2 m_wAccelPollCnt=KEY_MENU_POLL_COUNT;
390 2 else if(m_cOSDEvent==POWERMANAGE)
391 2 m_wAccelPollCnt=KEY_POWER_SEL;
392 2 else
393 2 {
394 3 if(m_cOSDEvent==FUNCSELCT_IN || m_cOSDEvent==FUNCSELCT_DN )
395 3 m_wAccelPollCnt=KEY_SEL_POLL_COUNT;
396 3 else if((m_cOSDEvent==FUNCADJ_IN)||(m_cOSDEvent==FUNCADJ_DN))
397 3 m_wAccelPollCnt=KEY_VAL_POLL_COUNT;
398 3 }
399 2 return 0;
400 2 }
401 1 else
402 1 m_wAccelPollCnt--;
403 1 return 1;
404 1 }
405
406 #ifdef ROTATE
407
408 extern uCHAR Dis_Mode;
409 bit kyDismodeEvent()
410 {
411 1 /*
412 1 sbit LEFT_RIGHT = P0^0; 1: LEFTtoRIGHt, 0: RIGHTtoLEFT
413 1 sbit UP_DOWN = P0^1; 1: Down, 0: UP
414 1 */
415 1 #ifdef _480_234 //KVGA
416 1 if((++Dis_Mode)>=VALID_DIR)
417 1 Dis_Mode=TOP_LEFT;
418 1 SET_Dismod();
419 1 #endif
420 1
421 1 #ifdef _800_480 //WVGA
if((++Dis_Mode)>=VALID_DIR)
Dis_Mode=TOP_LEFT;
SET_Dismod();
#endif
C51 COMPILER V7.50 KEYPAD 01/12/2006 13:31:13 PAGE 8
426 1
427 1 return 1;
428 1 }
429
430 #endif
431
432 /////////////////
433
434
435 /*
436 #ifdef TV
437
438 bit IRSetupKeyCtrl(void)
439 {
440 if(m_bKyBlocked) return 0;
441 if((m_cSource&0x0F)==(isrcTV))
442 {
443 if((m_cOSDFunc&0xF0)==idTVMENU_VIDEO)
444 {
445 m_cOSDEvent=FUNCEXIT;
446 }
447 else if((m_cOSDFunc==0))//&0xF0)==idMAINMENU)
448 {
449 m_cOSDFunc=idTVMENU_VIDEO;
450 m_cOSDEvent=FUNCENTER;
451 }
452 else return 0;
453 }
454 else
455 return 0;
456 return 1;
457 }
458
459 #endif
460 */
461 /*
462 bit IRUpKeyCtrl(void)
463 {
464
465 if(m_bKyBlocked) return 0;
466
467 #ifdef TV
468
469 if((m_cOSDFunc&0xF0)==idTVMENU_VIDEO)
470 {
471 m_cOSDEvent=FUNCSELCT_DN;
472 return 1;
473 }
474
475 #endif
476
477 switch(m_cOSDFunc)
478 {
479
480 #ifdef TV
481
482 case 0:
483 {
484 OSDExit();
485 AdjTVChannel(1,0);
486 return 0;
487 }
C51 COMPILER V7.50 KEYPAD 01/12/2006 13:31:13 PAGE 9
488
489 #endif
490 #ifdef LOAD_TIME
491 case idBRIGHTMENU:
492 m_cOSDFunc=idTIMEMENU;m_cOSDEvent=FUNCENTER;m_cItem=6;break;
493 #else
494 case idBRIGHTMENU:
495 m_cOSDFunc=idHUEMENU;m_cOSDEvent=FUNCENTER;m_cItem=5;break;
496 #endif
497 case idCONTRASTMENU:
498 {
499 m_cOSDFunc=idBRIGHTMENU;
500 m_cOSDEvent=FUNCENTER;
501 m_cItem=1;//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -