Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
daliands opened this issue Jun 7, 2018 · 0 comments
Open

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

daliands opened this issue Jun 7, 2018 · 0 comments

Comments

@daliands
Copy link

daliands commented Jun 7, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant