| 126 | */ |
| 127 | |
| 128 | bool PictureFrame::processClick() { |
| 129 | |
| 130 | uint32_t nextImage; |
| 131 | |
| 132 | // check for click |
| 133 | |
| 134 | if(!_touchManager->clicked()) |
| 135 | return false; |
| 136 | |
| 137 | // last touch must come up |
| 138 | |
| 139 | _touchManager->waitForPenUp(); |
| 140 | |
| 141 | // display UI and get the next image from it |
| 142 | |
| 143 | if(_thumbManager->run(nextImage,_autoScrollMillis,_autoScrollEnabled)) |
| 144 | _imageManager->setCurrentImage(nextImage); |
| 145 | |
| 146 | _touchManager->waitForPenUp(); |
| 147 | |
| 148 | // show the image |
| 149 | |
| 150 | _imageManager->showImage(); |
| 151 | return true; |
| 152 | } |
nothing calls this directly
no test coverage detected