Closed drhisham-code closed 3 years ago
gesture_start() takes any coordinates gesture_track() coordinates should be absolute, the x and y difference between the coordinates is calculated automatically
int xdif = x - gesture_recorder->x;
int ydif = y - gesture_recorder->y;
Keep in mind though, that the implementation could be improved, the linked list is inefficient (in comparison to other vector implementations)
Thanks for answering quickly 😊
Does it require absolute or relative coordinates ?