Skip to content

Commit

Permalink
Core2 Keyboard fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorcelli committed Nov 26, 2024
1 parent 68114da commit 52ac302
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ports/m5stack-core2/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,10 @@ String keyboard(String mytext, int maxSize, String msg) {
/* When Select a key in keyboard */

int z=0;

M5.update();
auto t = M5.Touch.getDetail();
if (t.wasClicked())
if (t.isPressed() || t.isHolding())
{
if (box_list[48].contain(t.x, t.y)) { break; } // Ok
if (box_list[49].contain(t.x, t.y)) { caps=!caps; tft.fillRect(0,54,WIDTH,HEIGHT-54,BGCOLOR); goto THIS_END; } // CAP
Expand Down

0 comments on commit 52ac302

Please sign in to comment.