View Single Post
Old Jun 1st, 2006, 3:24 AM   #5
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
Yes, GetAsyncKeyState works just fine.

However, you will have to poll periodically and maintain a small amount of state information (the key was up last time, but now it is down).

I'd avoid hooks for now...much easier to mess up. In the future, you may want to consider them as a better solution.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote