ERIS CORE

◆ onTouch()

void FLASHMEM AppCQT::onTouch ( uint16_t  t_x,
uint16_t  t_y 
)
inlineprotectedvirtual

Event handler called on touch.

Parameters
t_x
t_y

Reimplemented from AppBaseClass.

Definition at line 311 of file appCQT.h.

311  {
312  //check if touch point is within the application bounding box
313  if (t_x > x && t_x < (x + w) && t_y > y && t_y < (y + h)){
314  //is touched
315  if(!has_pop){
316  //getFocus();
317  requestPopUp(true);
318 
319  }else{
320  //returnFocus();
321  releasePopUp();
322  }
323  }
324  };
void requestPopUp(bool exclusive=false)
request popup from the AppManager will be activated by the next render loop applications in popup m...
void releasePopUp()
gives up popup

References AppBaseClass::h, AppBaseClass::has_pop, AppBaseClass::releasePopUp(), AppBaseClass::requestPopUp(), AppBaseClass::w, AppBaseClass::x, and AppBaseClass::y.

+ Here is the call graph for this function: