Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Win 2 API - <b>getasynckeystate</b> is key up or down & was it pressed http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetAsyncKeyState     Is Key Up or Down & Was It Pressed

int GetAsyncKeyState(vKey)
int vKey; /* Virtual Key Code */

Returns:
                 msb                                lsb
                +------------------   ------------------+
                |    |          Undefined          |    |
                +------------------   ------------------+
                  |                                  |
                +-------------+     +---------------------------------------+
                | 1 = Key Down|     |1 = Pressed Since Last GetAsyncKeyState|
                | 0 = Key Up  |     |0 = Not Pressed Since last call        |
                +-------------+     +---------------------------------------+

See Also: GetKeyState

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson