Director - & gt; MainLoop ();
Glview - & gt; PollEvents ();
In the mainloop timer function call processing, if the emptied a pointer, and after that I click a button on the interface will produce a touch event,
This event will be asynchronous join the glview below the message queue, glview - & gt; PollEvents (); Invokes the response of the touch response that button will be response of events, if operating the pointer will not collapse?
question: as the possibility of such concerns have, such as exist and how to solve or avoid?
CodePudding user response:
Judgment is pointer is not empty before operationCodePudding user response: