ERIS CORE

◆ onTouch()

void ControlSlider::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 56 of file ControlSlider.h.

56  {
57  if (t_x > x && t_x < (x + w) && t_y > y && t_y < (y + h)){
58  is_pressed = true;
59  last_x = t_x;
60  is_dirty = true;
61  }
62  };
uint16_t last_x
Definition: ControlSlider.h:38

References AppBaseClass::h, is_dirty, is_pressed, last_x, AppBaseClass::w, AppBaseClass::x, and AppBaseClass::y.