1. Why GII gii_event.pbutton does not have cursor coordinate information in
case of GII buffering and sending data which have absolute cursor position(x
target and may be future fb target with hardware cursor).
2. Why GII does not use button data in case of sending pmove event?
3. I found some strange behavior inside of GII.
-I poll GII one time
-I read all events queued inside GII in my internal buffer with keeping
only one pmove message inside of my buffer
-I read one message from my buffer.
-I move my cursor in case of pmove data
-I call ggUSleep(10);
-I see funny effect on the screen:
my cursor making always is to late :) It looks like GII buffer can not
give me back all messages by one polling.
if I do poll and read queued messages like this:
while(Poll()); instead of one polling
where Poll is something like this. (DO not forget I do not save reputed
pmove messages. I cleaned that code to save space.)
bool wipGII::Poll()
{
bool r=false;
timeval val;
val.tv_sec=0;
val.tv_usec=0;
ggiEventPoll(graph->vis, emAll, &val);
for (int n=ggiEventsQueued(graph->vis, emAll); n; n--)
{
ggiEventRead(graph->vis, &ev[(unsigned char)(ev_ptr+ev_qty)], emAll);
if (ev_qty!=0xff) ev_qty++; else ev_ptr++;
r=true;
}
return r;
}
I've found no problem with my cursor.
Thank you
Dmitry