MCPcopy Create free account
hub / github.com/andysworkshop/stm32plus / processClick

Method processClick

examples/pframe/PictureFrame.cpp:128–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 */
127
128bool 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}

Callers

nothing calls this directly

Calls 5

clickedMethod · 0.80
waitForPenUpMethod · 0.80
setCurrentImageMethod · 0.80
showImageMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected