ERIS CORE

◆ onTouch()

void AppScope::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 99 of file appScope.h.

99  {
100  //check if touch point is within the application bounding box
101  if (t_x > x && t_x < (x + w) && t_y > y && t_y < (y + h)){
102  //is touched
103  if(!has_pop){
104  //getFocus();
105  requestPopUp();
106 
107  }else{
108  //returnFocus();
109  releasePopUp();
110  }
111  }
112  };
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: