openstf / minitouch

Minimal multitouch event producer for Android.
Other
633 stars 233 forks source link

click message is received,but click event is not start #32

Open daliands opened 6 years ago

daliands commented 6 years ago

I set a log in io_handler like this:

static void io_handler(FILE input, FILE output, internal_state_t* state) { setvbuf(input, NULL, _IOLBF, 1024); setvbuf(output, NULL, _IOLBF, 1024);

// Tell version
fprintf(output, "v %d\n", VERSION);

// Tell limits
fprintf(output, "^ %d %d %d %d\n",
        state->max_contacts, state->max_x, state->max_y, state->max_pressure);

// Tell pid
fprintf(output, "$ %d\n", getpid());

char read_buffer[80];

while (fgets(read_buffer, sizeof(read_buffer), input) != NULL)
{
    LOGE_CORE("readbuffer:%s",read_buffer);
    read_buffer[strcspn(read_buffer, "\r\n")] = 0;
    parse_input(read_buffer, state);
}

}

but when the message is received,like: 06-07 03:25:36.674 2640-2640/? E/minitouch: readbuffer:d 0 90 170 100 06-07 03:25:36.675 2640-2640/? E/minitouch: readbuffer: 06-07 03:25:36.675 2640-2640/? E/minitouch: readbuffer:c 06-07 03:25:36.676 2640-2640/? E/minitouch: readbuffer: 06-07 03:25:36.676 2640-2640/? E/minitouch: readbuffer:u 0 06-07 03:25:36.676 2640-2640/? E/minitouch: readbuffer: 06-07 03:25:36.676 2640-2640/? E/minitouch: readbuffer:c 06-07 03:25:36.676 2640-2640/? E/minitouch: readbuffer:

the click event is not start