fixed the navigation in the menus and deleted the unused code
This commit is contained in:
parent
1bfc2554f8
commit
6723b254a2
|
@ -149,14 +149,6 @@ void switcher_button_proc() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//#if defined(KB)
|
|
||||||
// void check_kb(){
|
|
||||||
// M5Cardputer.update();
|
|
||||||
// if (M5Cardputer.Keyboard.isChange()) {
|
|
||||||
// delay(100);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//#endif
|
|
||||||
// Tap the power button from pretty much anywhere to get to the main menu
|
// Tap the power button from pretty much anywhere to get to the main menu
|
||||||
void check_menu_press() {
|
void check_menu_press() {
|
||||||
#if defined(AXP)
|
#if defined(AXP)
|
||||||
|
@ -178,12 +170,10 @@ bool check_next_press(){
|
||||||
if (M5Cardputer.Keyboard.isKeyPressed(';')){
|
if (M5Cardputer.Keyboard.isKeyPressed(';')){
|
||||||
// hack to handle the up arrow
|
// hack to handle the up arrow
|
||||||
cursor = cursor - 2;
|
cursor = cursor - 2;
|
||||||
// check_kb();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
M5Cardputer.update();
|
M5Cardputer.update();
|
||||||
if (M5Cardputer.Keyboard.isKeyPressed(KEY_TAB) || M5Cardputer.Keyboard.isKeyPressed('.')){
|
if (M5Cardputer.Keyboard.isKeyPressed(KEY_TAB) || M5Cardputer.Keyboard.isKeyPressed('.')){
|
||||||
// check_kb();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
@ -667,7 +657,6 @@ void sendAllCodes() {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if defined(KB)
|
#if defined(KB)
|
||||||
// check_kb();
|
|
||||||
#endif
|
#endif
|
||||||
if (check_select_press()){
|
if (check_select_press()){
|
||||||
Serial.println("endingearly");
|
Serial.println("endingearly");
|
||||||
|
@ -1600,7 +1589,6 @@ void loop() {
|
||||||
screen_dim_proc();
|
screen_dim_proc();
|
||||||
#endif
|
#endif
|
||||||
#if defined(CARDPUTER)
|
#if defined(CARDPUTER)
|
||||||
// check_kb();
|
|
||||||
#endif
|
#endif
|
||||||
check_menu_press();
|
check_menu_press();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue