What do the touch events represent? Arduino

Moderators: lily.li, violet, jessie, chao.zhang

Post Reply
xofozaw
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Sat Mar 05, 2016 4:49 am

What do the touch events represent? Arduino

Post by xofozaw » Sat Mar 05, 2016 4:54 am

I was playing with the tp_test_g and I was wondering what are the possible values that EVENT can have in that statement:

Code: Select all

Tp.Get_event_xy(&EVENT, &X, &Y);
I saw values from 1 to 6, but what do they mean?

guitarecoco
Pre-kindergarten
Pre-kindergarten
Posts: 2
Joined: Fri Mar 04, 2016 6:17 am

Re: What do the touch events represent? Arduino

Post by guitarecoco » Sat Mar 05, 2016 11:01 pm

Looking through the code, here's what I found in the file:
" ..\Arduino_IDE_for_RePhone\hardware\arduino\mtk\system\libmtk\include\vmtouch.h "

Code: Select all

typedef enum
{
    VM_TOUCH_EVENT_TAP = 1,         /* Touch down event. */
    VM_TOUCH_EVENT_RELEASE = 2,     /* Touch release event. */
    VM_TOUCH_EVENT_MOVE = 3,        /* Touch move event. */
    VM_TOUCH_EVENT_LONG_TAP = 4,    /* Touch long tap event. Note:
                                       1. VM_TOUCH_EVENT_LONG_TAP event is
                                          invoked when the Touch is tapped for
                                          a period of time and stays at the
                                          same place where it is tapped down.
                                       2. If Touch move happen after Touch down,
                                          there will be no
                                          VM_TOUCH_EVENT_LONG_TAP event.
                                       3. VM_TOUCH_EVENT_LONG_TAP can only
                                          happen one time at most before
                                          VM_TOUCH_EVENT_RELEASE. */
    VM_TOUCH_EVENT_DOUBLE_CLICK = 5,/* Touch double click event. */
    VM_TOUCH_EVENT_REPEAT = 6,      /* Touch repeat event. Note:
                                       1. VM_TOUCH_EVENT_REPEAT can happen after
                                          VM_TOUCH_EVENT_LONG_TAP or
                                          VM_TOUCH_EVENT_MOVE or another
                                          VM_TOUCH_EVENT_REPEAT.
                                       2. The coordinate follows
                                          previous VM_TOUCH_EVENT_REPEAT
                                          events.*/
    VM_TOUCH_EVENT_ABORT = 7,       /* Touch abort event. */

    VM_TOUCH_EVENT_MAX = 0x7FFFFFFF
} VM_TOUCH_EVENT;

Post Reply