[Wine] Re: GetAsyncKeyState

vitamin wineforum-user at winehq.org
Fri May 9 18:30:36 CDT 2008

L. Rahyen wrote:
> On Thursday May 8 2008 17:09:28 vitamin wrote:
> > Getting "global" key states are bad.
> > If you really have to do that, then you doing something really wrong.
> > 
> 	Actually sometimes there is valid reasons for getting global key states. For 
> example, Mousotron really needs this to be fixed to be fully usable. 

The stuff that "needs" global key events called "key logger".

If something _needs_ those events, they should use LL_HOOKs (keyboard and mouse). Constantly polling GetAsyncKeyState() doesn't guarantee anything and is a really bad practice. It's even bad to use that function to check state of the keys at any given point of time.

More information about the wine-users mailing list