Touch support reworked

This commit is contained in:
Bertrand Songis
2020-02-24 17:25:37 +01:00
parent 6c7a3bcf44
commit 2508191864
4 changed files with 24 additions and 14 deletions
+7 -8
View File
@@ -32,14 +32,13 @@ enum TouchEvent
struct TouchState
{
unsigned char event;
short x;
short y;
short startX;
short startY;
short lastX;
short lastY;
uint32_t time;
unsigned char event;
short x;
short y;
short startX;
short startY;
short deltaX;
short deltaY;
};
constexpr uint8_t SLIDE_RANGE = 6;