A272R版本优化
This commit is contained in:
@ -68,6 +68,10 @@ void check_key(void)
|
||||
gs_keyDat[i].flag_Reset=1;
|
||||
gs_keyDat[i].keyCnt=0;
|
||||
// printf("LV_KEY_OPTION key long key\r\n");
|
||||
if(Get_sys_wifi_state()){
|
||||
printf("key carplay -----------------maps.\r\n");
|
||||
request_UI("maps:");
|
||||
}else
|
||||
Key_Distinction(KEY_LONG_ON,LV_KEY_OPTION);
|
||||
}
|
||||
if(i==1 && gs_keyDat[0].flag_Pressed==KEY_OFF)
|
||||
@ -75,6 +79,11 @@ void check_key(void)
|
||||
gs_keyDat[i].flag_Reset=1;
|
||||
gs_keyDat[i].keyCnt=0;
|
||||
// printf("LV_KEY_SELECT key long key\r\n");
|
||||
if(Get_sys_wifi_state()){
|
||||
printf("key carplay -----------------enter.\r\n");
|
||||
// KnobUpdate(1,0,0,0,0,0);
|
||||
sendKnobInfo(1, 0, 0, 0, 0, 0);
|
||||
}else
|
||||
Key_Distinction(KEY_LONG_ON,LV_KEY_SELECT);
|
||||
}
|
||||
|
||||
@ -100,6 +109,11 @@ void check_key(void)
|
||||
// // android_auto_send_knob_event(19,1);
|
||||
// // android_auto_send_knob_event(19,0);
|
||||
// }else
|
||||
if(Get_sys_wifi_state()){
|
||||
printf("key carplay -----------------previos.\r\n");
|
||||
// KnobUpdate(0,0,0,0,0,1);
|
||||
sendKnobInfo(0, 0, 0, 0, 0, 1);
|
||||
}else
|
||||
Key_Distinction(KEY_SHORT_ON,LV_KEY_OPTION);
|
||||
}
|
||||
else if(i==1 && gs_keyDat[0].flag_Pressed==KEY_OFF)
|
||||
@ -118,6 +132,11 @@ void check_key(void)
|
||||
// // android_auto_send_knob_event(20,1);
|
||||
// // android_auto_send_knob_event(20,0);
|
||||
// }else
|
||||
if(Get_sys_wifi_state()){
|
||||
printf("key carplay -----------------next.\r\n");
|
||||
// KnobUpdate(0,0,0,0,0,-1);
|
||||
sendKnobInfo(0, 0, 0, 0, 0, -1);
|
||||
}else
|
||||
Key_Distinction(KEY_SHORT_ON,LV_KEY_SELECT);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user