I was playing with the tp_test_g and I was wondering what are the possible values that EVENT can have in that statement:
Tp.Get_event_xy(&EVENT, &X, &Y);
I saw values from 1 to 6, but what do they mean?
I was playing with the tp_test_g and I was wondering what are the possible values that EVENT can have in that statement:
Tp.Get_event_xy(&EVENT, &X, &Y);
I saw values from 1 to 6, but what do they mean?
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]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;[/code]