ERIS CORE

◆ onTouch()

void AppTemplate::onTouch ( uint16_t  t_x,
uint16_t  t_y 
)
inlineoverrideprotectedvirtual

Event handler called on touch.

Parameters
t_x
t_y

Reimplemented from AppBaseClass.

Definition at line 32 of file AppTemplate.h.

32  {
33  //check if touch point is within the application bounding box
34  if (t_x > x && t_x < (x + w) && t_y > y && t_y < (y + h)){
35  //is touched
36  }
37  };

References AppBaseClass::h, AppBaseClass::w, AppBaseClass::x, and AppBaseClass::y.