I have problem with GR_EVENT_TYPE_BUTTON_UP event. Please take a look :
GrGetNextEventTimeout(&eventKey, 5L); switch (eventKey.type) { case GR_EVENT_TYPE_BUTTON_DOWN: on2 = 1; ... while(on2) { GrGetNextEventTimeout(&eventKey, 5L); sleep(3); switch (eventKey.type) { case GR_EVENT_TYPE_BUTTON_UP: ... on2 = 0; break; } } } } break; } When I touch LCD panel the GR_EVENT_TYPE_BUTTON_DOWN event is generating. But when I release button I can't detect GR_EVENT_TYPE_BUTTON_UP event. When I delete 'sleep(3);' line it is all ok. I thought that events are saved in queue. It's a bug ? Łukasz Wójcicki --------------------------------------------------------------------- To unsubscribe, e-mail: nanogui-unsubscr...@linuxhacker.org For additional commands, e-mail: nanogui-h...@linuxhacker.org