Latest libopenui updates

This commit is contained in:
Bertrand Songis
2019-10-11 19:44:06 +02:00
parent 078cf3ba86
commit 7bad66db1c
13 changed files with 331 additions and 357 deletions
+13 -11
View File
@@ -18,10 +18,10 @@
* GNU General Public License for more details.
*/
#ifndef TOUCH_H
#define TOUCH_H
#ifndef _TOUCH_H_
#define _TOUCH_H_
enum ENUM_TOUCH_EVENT
enum TouchEvent
{
TE_NONE,
TE_DOWN,
@@ -30,18 +30,20 @@ enum ENUM_TOUCH_EVENT
TE_END
};
typedef struct
struct TouchState
{
unsigned char Event;
short X;
short Y;
unsigned char event;
short x;
short y;
short startX;
short startY;
short lastX;
short lastY;
uint32_t Time;
} STRUCT_TOUCH;
uint32_t time;
};
#define SLIDE_RANGE ( 6 )
constexpr uint8_t SLIDE_RANGE = 6;
#endif // TOUCH_H
extern TouchState touchState;
#endif // _TOUCH_H_