Slide energy taken into account

This commit is contained in:
Bertrand Songis
2020-03-20 18:04:17 +01:00
parent 1e25fba4ba
commit 76bc7b5c29
4 changed files with 24 additions and 20 deletions
+3 -1
View File
@@ -27,7 +27,7 @@ enum TouchEvent
TE_DOWN,
TE_UP,
TE_SLIDE,
TE_END
TE_SLIDE_END
};
struct TouchState
@@ -39,6 +39,8 @@ struct TouchState
short startY;
short deltaX;
short deltaY;
short lastDeltaX;
short lastDeltaY;
};
constexpr uint8_t SLIDE_RANGE = 6;