53    static int lastTouchX = 0;
 
   56    static int distance = 0;
 
   57    static long dragprev = 0;
 
   58    static int velocityX = 0;
 
   59    static int count1Touch = 0;
 
   62        _delay += (time - prev_time);
 
   73            if (lastTouchX == 0) {
 
   77                distance = 
sTouchX - lastTouchX;
 
   91        velocityX = (dragprev - 
sTouchX) << 4;
 
   94        int change = 
MAX(1, abs(velocityX) >> 5);
 
  102        if (count1Touch == 5) {
 
 
  124    if (newTag == 0 && oldtag != newTag) {
 
  128    else if (newTag != 0) {
 
 
  151        if (temp_tag != Read_tag)
 
 
EVE's co-processor commmands.
 
#define REG_TOUCH_SCREEN_XY
 
EVE_HAL_EXPORT uint8_t EVE_Hal_rd8(EVE_HalContext *phost, uint32_t addr)
Read 8 bits from Coprocessor's memory.
 
EVE_HAL_EXPORT uint32_t EVE_millis()
Get clock in miliseond.
 
Gesture_Touch_t * Gesture_Get()
Get gesture data.
 
static const int sMinMove
 
static int Getvelocity_X()
Get horizontal veloxity.
 
Gesture_Touch_t * Gesture_Renew(Gpu_Hal_Context_t *phost)
Refresh gesture data.
 
uint8_t Gesture_GetTag(EVE_HalContext *phost)
Get Active tag number.
 
static Gesture_Touch_t sGesture
 
static uint32_t GetTagReleased()
Get the Tag number of Released object.
 
Gesture for touch screen.
 
#define Gpu_Hal_Context_t