nanogui: GR_EVENT_TYPE_BUTTON_UP problem


Previous by date: 23 Oct 2009 18:31:47 -0000 Urgent help required - Problem with microwindows GrText, GrGetGCTextSize functions, Mahesh B Gupta
Next by date: 23 Oct 2009 18:31:47 -0000 strange problem: 'bearded' pngs, Luca Santini
Previous in thread:
Next in thread:

Subject: GR_EVENT_TYPE_BUTTON_UP problem
From: Łukasz ####@####.####
Date: 23 Oct 2009 18:31:47 -0000
Message-Id: <1256322592.7258.14.camel@Stanowisko-25>

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 
  



Previous by date: 23 Oct 2009 18:31:47 -0000 Urgent help required - Problem with microwindows GrText, GrGetGCTextSize functions, Mahesh B Gupta
Next by date: 23 Oct 2009 18:31:47 -0000 strange problem: 'bearded' pngs, Luca Santini
Previous in thread:
Next in thread:


Powered by ezmlm-browse 0.20.