LeftIsDown() on wxEVT_LEFT_DOWN event?

Stefan Csomor csomor at advancedconcepts.ch
Tue Aug 15 07:14:48 PDT 2006


Hi  

>  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.

same thing here on OS X, the 'normal' calls give you back the state at
the last event, well you now even have both calls but asking for the
current state is more expensive in timing, than just accessing the
already stored values

Best,

Stefan





More information about the wx-users mailing list