You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
398 B
C++
19 lines
398 B
C++
#include "touch_control.h"
|
|
|
|
TouchControl::TouchControl(int32_t pos_x, int32_t pos_y, int32_t pos_r)
|
|
{
|
|
init(pos_x, pos_y, pos_r);
|
|
}
|
|
|
|
void TouchControl::init(int32_t pos_x, int32_t pos_y, int32_t pos_r)
|
|
{
|
|
this->pos_x = pos_x;
|
|
this->pos_y = pos_y;
|
|
this->pos_r = pos_r;
|
|
this->pos_r2 = pos_r * pos_r;
|
|
|
|
this->control_type = CT_NONE;
|
|
|
|
this->finger_id = -1;
|
|
}
|