macro question

Started by
10 comments, last by ninja770 23 years, 1 month ago
aright i think i get it now. But one things still a little confusing... if anyone is familiar with the GetAsyncKeyState, could you tell me what it returns? if it returns a bool i dont see why the "& 0x8000" is needed.

-----------------------------
I''m almost finished my 3D Engine for the TI-83 calculator
-----------------------------;)I'm almost finished my 3D Engine for the TI-83 calculator ;)
Advertisement
The GetAsyncKeyState function determines whether a key is up or down at the time the function is called, and whether the key was pressed after a previous call to GetAsyncKeyState.

SHORT GetAsyncKeyState( int vKey
// virtual-key code

);




Parameters


vKey

Specifies one of 256 possible virtual-key codes.

Windows NT: You can use left- and right-distinguishing constants to specify certain keys. See the Remarks section for further information.

Windows 95: Windows 95 does not support the left- and right-distinguishing constants available on Windows NT.

Return Values


If the function succeeds, the return value specifies whether the key was pressed since the last call to GetAsyncKeyState, and whether the key is currently up or down. If the most significant bit is set, the key is down, and if the least significant bit is set, the key was pressed after the previous call to GetAsyncKeyState. The return value is zero if a window in another thread or process currently has the keyboard focus.

Windows 95: Windows 95 does not support the left- and right-distinguishing constants. If you call GetAsyncKeyState on the Windows 95 platform with these constants, the return value is zero.

This topic is closed to new replies.

Advertisement