ERIS CORE

◆ onTouch()

void SvcMIDI::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 65 of file SvcMidi.h.

65  {
66  //check if touch point is within the application bounding box
67  if (t_x > x && t_x < (x + w) && t_y > y && t_y < (y + h)){
68  //is touched
69  }
70  };

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