Mood: energetic
Topic: VC++
During a function call if you want to determine the state of a key use ::GetAsyncKeyState(VK_SHIFT) Wait a minute there is one more: ::GetKeyState(VK_SHIFT) This function retrieves the status of the specified virtual key. The status specifies whether the key is up, down, or toggled (on, off?alternating each time the key is pressed) To retrieve state information for all the virtual keys, use ::GetKeyboardState(PBYTE lpKeyState) lpKeyState: Pointer to the 256-byte array that receives the status data for each virtual key.
Posted by Nibu babu thomas
at 3:56 PM
Updated: Thursday, 10 November 2005 4:44 PM