refactor(AGENTS.md): update docs for simplified build commands and board config
This commit is contained in:
@@ -166,7 +166,7 @@ public:
|
||||
_drv->transformTouch(&dx, &dy);
|
||||
_drv->transformTouch(&cx, &cy);
|
||||
|
||||
int headerH = 30;
|
||||
int headerH = _headerHeight;
|
||||
int cellW = _drv->width() / _gridCols;
|
||||
int cellH = (_drv->height() - headerH) / _gridRows;
|
||||
|
||||
@@ -184,6 +184,8 @@ public:
|
||||
/// Handle dashboard touch - returns action for tapped tile, or NONE
|
||||
TileAction handleDashboardTouch(int x, int y) const {
|
||||
HitResult hr = hitTest(x, y);
|
||||
Serial.printf("[HIT] x=%d y=%d type=%d idx=%d _headerHeight=%d\n", x, y, (int)hr.type,
|
||||
hr.index, _headerHeight);
|
||||
if(hr.type == UIElementType::TILE && hr.index >= 0 && hr.index < DASHBOARD_TILE_COUNT) {
|
||||
return DASHBOARD_TILES[hr.index].action;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user