Click to See Complete Forum and Search --> : Detecting Left Shift and Right Shift in Window 95/98


Joseph Ferner
April 17th, 1999, 05:04 PM
How do I detect the state of the Left Shift or Right Shift keys. GetKeyState will only give me both of them together.

anil
April 17th, 1999, 08:03 PM
Use GetKeyboardState() or GetAsyncKeyState() API's. Use VK_LSHIFT and VK_RSHIFT indices to get them seperately.