📄 keypad.lst
字号:
203 3 // KeypadButton=BTN_Repeat;
204 3 //else
205 3 //{
206 3 // KeypadButton=BTN_IR_2;
207 3 gm_sendByte(Key_IR_Two);
208 3 //}
209 3 }
210 2 else if (keypadStatus == KEY_IR_3)
211 2 {
212 3 //if (KeypadButton==BTN_IR_3 || KeypadButton==BTN_Repeat)
213 3 // KeypadButton=BTN_Repeat;
214 3 //else
215 3 //{
216 3 // KeypadButton=BTN_IR_3;
217 3 gm_sendByte(Key_IR_Three);
218 3 //}
219 3 }
220 2 else if (keypadStatus == KEY_IR_4)
221 2 {
222 3 //if (KeypadButton==BTN_IR_4 || KeypadButton==BTN_Repeat)
223 3 // KeypadButton=BTN_Repeat;
224 3 //else
225 3 //{
226 3 // KeypadButton=BTN_IR_4;
227 3 gm_sendByte(Key_IR_Four);
228 3 //}
229 3 }
230 2 else if (keypadStatus == KEY_IR_5)
231 2 {
232 3 //if (KeypadButton==BTN_IR_5 || KeypadButton==BTN_Repeat)
233 3 // KeypadButton=BTN_Repeat;
234 3 //else
235 3 //{
236 3 // KeypadButton=BTN_IR_5;
237 3 gm_sendByte(Key_IR_Five);
238 3 //}
239 3 }
240 2 else if (keypadStatus == KEY_IR_6)
C51 COMPILER V7.50 KEYPAD 07/06/2006 10:40:57 PAGE 5
241 2 {
242 3 //if (KeypadButton==BTN_IR_6 || KeypadButton==BTN_Repeat)
243 3 // KeypadButton=BTN_Repeat;
244 3 //else
245 3 //{
246 3 // KeypadButton=BTN_IR_6;
247 3 gm_sendByte(Key_IR_Six);
248 3 //}
249 3 }
250 2 else if (keypadStatus == KEY_IR_7)
251 2 {
252 3 //if (KeypadButton==BTN_IR_7 || KeypadButton==BTN_Repeat)
253 3 // KeypadButton=BTN_Repeat;
254 3 //else
255 3 //{
256 3 // KeypadButton=BTN_IR_7;
257 3 gm_sendByte(Key_IR_Seven);
258 3 //}
259 3 }
260 2 else if (keypadStatus == KEY_IR_8)
261 2 {
262 3 //if (KeypadButton==BTN_IR_8 || KeypadButton==BTN_Repeat)
263 3 // KeypadButton=BTN_Repeat;
264 3 //else
265 3 //{
266 3 // KeypadButton=BTN_IR_8;
267 3 gm_sendByte(Key_IR_Eight);
268 3 //}
269 3 }
270 2 else if (keypadStatus == KEY_IR_9)
271 2 {
272 3 //if (KeypadButton==BTN_IR_9 || KeypadButton==BTN_Repeat)
273 3 // KeypadButton=BTN_Repeat;
274 3 //else
275 3 //{
276 3 // KeypadButton=BTN_IR_9;
277 3 gm_sendByte(Key_IR_Nine);
278 3 //}
279 3 }
280 2 else if (keypadStatus==KEY_IR_VOLUMEUP)
281 2 {
282 3 gm_sendByte(Key_VolumeUp|CMD_HEAD_IR);
283 3 }
284 2 else if (keypadStatus==KEY_IR_VOLUMEDOWN)
285 2 {
286 3 gm_sendByte(Key_VolumeDown|CMD_HEAD_IR);
287 3 }
288 2 else if (keypadStatus==KEY_IR_CHANNELUP)
289 2 {
290 3 gm_sendByte(Key_ChannelUp|CMD_HEAD_IR);
291 3 }
292 2 else if (keypadStatus==KEY_IR_CHANNELDOWN)
293 2 {
294 3 gm_sendByte(Key_ChannelDown|CMD_HEAD_IR);
295 3 }
296 2 else if (keypadStatus == KEY_IR_UP)
297 2 {
298 3 // if (KeypadButton == BTN_IR_Up ||KeypadButton == BTN_Repeat)
299 3 // KeypadButton = BTN_Repeat;
300 3 // else
301 3 // {
302 3 // KeypadButton = BTN_IR_Up;
C51 COMPILER V7.50 KEYPAD 07/06/2006 10:40:57 PAGE 6
303 3 gm_sendByte(Key_Up|CMD_HEAD_IR);
304 3 // }
305 3 }
306 2 else if (keypadStatus == KEY_IR_DOWN)
307 2 {
308 3 // if (KeypadButton == BTN_IR_Down ||KeypadButton == BTN_Repeat)
309 3 // KeypadButton = BTN_Repeat;
310 3 // else
311 3 // {
312 3 // KeypadButton = BTN_IR_Down;
313 3 gm_sendByte(Key_Down|CMD_HEAD_IR);
314 3 // }
315 3 }
316 2 else if (keypadStatus == KEY_IR_LEFT)
317 2 {
318 3 gm_sendByte(Key_Left|CMD_HEAD_IR);
319 3 }
320 2 else if (keypadStatus == KEY_IR_RIGHT)
321 2 {
322 3 gm_sendByte(Key_Right|CMD_HEAD_IR);
323 3 }
324 2 else if (keypadStatus == KEY_IR_POWER)
325 2 {
326 3 if (KeypadButton==BTN_IR_Power || KeypadButton==BTN_Repeat)
327 3 KeypadButton=BTN_Repeat;
328 3 else
329 3 {
330 4
331 4 #if 1
332 4 if (gm_StandbyHi())
333 4 //if (!PowerOnFlag)
334 4 {
335 5 //printMsg("standby high, standby high");
336 5 Clr_gm_Standby();
337 5 Set_DoPowerOnFlag();
338 5 Set_PowerOnStatus();
339 5 ForceDelay1ms(1);
340 5 //cmd_Power_Handler = POWER_ON_SYSTEM;
341 5 }
342 4 else
343 4 {
344 5 Clr_DoPowerOnFlag();
345 5 }
346 4 #endif
347 4
348 4 KeypadButton=BTN_IR_Power;
349 4 gm_sendByte(Key_PowerKey|CMD_HEAD_IR);
350 4 }
351 3 }
352 2 else if (keypadStatus == KEY_IR_SOURCESWITCH)
353 2 {
354 3 //if (KeypadButton==BTN_IR_SourceSwitch || KeypadButton==BTN_Repeat)
355 3 // KeypadButton=BTN_Repeat;
356 3 //else
357 3 //{
358 3 // KeypadButton=BTN_IR_SourceSwitch;
359 3 gm_sendByte(Key_SourceKey|CMD_HEAD_IR);
360 3 //}
361 3 }
362 2 else if (keypadStatus == KEY_IR_MENUENTER)
363 2 {
364 3 //if (KeypadButton==BTN_IR_MenuEnter || KeypadButton==BTN_Repeat)
C51 COMPILER V7.50 KEYPAD 07/06/2006 10:40:57 PAGE 7
365 3 //{
366 3 // KeypadButton=BTN_Repeat;
367 3 //}
368 3 //else
369 3 //{
370 3 // KeypadButton=BTN_IR_MenuEnter;
371 3 gm_sendByte(Key_MenuEnter|CMD_HEAD_IR);
372 3 //}
373 3 }
374 2 else if (keypadStatus == KEY_IR_MUTE)
375 2 {
376 3 //if (KeypadButton==BTN_IR_Mute || KeypadButton==BTN_Repeat)
377 3 // KeypadButton=BTN_Repeat;
378 3 //else{
379 3 // KeypadButton=BTN_IR_Mute;
380 3 gm_sendByte(Key_Mute|CMD_HEAD_IR);
381 3 //}
382 3 }
383 2 else if (keypadStatus == KEY_IR_AUTOCOLOR)
384 2 {
385 3 //if (KeypadButton==BTN_IR_AutoColor || KeypadButton==BTN_Repeat)
386 3 // KeypadButton=BTN_Repeat;
387 3 //else
388 3 //{
389 3 // KeypadButton=BTN_IR_AutoColor;
390 3 gm_sendByte(Key_ADC_1_AUTO|CMD_HEAD_IR);
391 3 //}
392 3 }
393 2 else if (keypadStatus == KEY_IR_ENTERKEY)
394 2 {
395 3 //if (KeypadButton==BTN_IR_EnterKey|| KeypadButton==BTN_Repeat)
396 3 //KeypadButton=BTN_Repeat;
397 3 //else
398 3 //{
399 3 //KeypadButton=BTN_IR_EnterKey;
400 3 gm_sendByte(Key_EnterKey|CMD_HEAD_IR);
401 3 //}
402 3 }
403 2 else if(keypadStatus==KEY_IR_RETURN)
404 2 {
405 3 gm_sendByte(Key_Exit|CMD_HEAD_KEY);
406 3 }
407 2 else if (keypadStatus == KEY_IR_ASPECT)
408 2 {
409 3 //if (KeypadButton==BTN_IR_Aspect|| KeypadButton==BTN_Repeat)
410 3 // KeypadButton=BTN_Repeat;
411 3 //else
412 3 //{
413 3 // KeypadButton=BTN_IR_Aspect;
414 3 gm_sendByte(Key_Aspect|CMD_HEAD_IR);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -