LeftIsDown() on wxEVT_LEFT_DOWN event?
Alex Bligh
alex at alex.org.uk
Tue Aug 15 08:23:18 PDT 2006
--On 15 August 2006 16:44 +0200 Vadim Zeitlin <vadim at wxwindows.org> wrote:
> At least under Windows because ::GetKeyState() returns the button state
> at the moment of the last event and not the current state (which is
> returned by ::GetAsyncKeyState()). I hope the other systems behave the
> same because this does make sense.
It seems to me that gdk_window_get_pointer returns the synchronous mouse
position (by the fact that the docs say it requires a complete round
trip to the server to get the pointer coords etc.).
If wxWidgets thinks this sort of call returns the last pointer position
and modifiers at the previous event, this explains another symptom we
are seeing, which is the pointer up position of drags not reflecting
the pointer position at the time of the button-up, but the pointer position
at the time the event was processed.
Alex
More information about the wx-users
mailing list