GetAsyncKeyState(vk_code) Problem...
I have a problem with GetAsyncKeyState(vk_code).
VK_LEFT, VK_RIGHT, VK_DOWN,VK_RETURN,VK_F1 - F4 works.
And many more that I havn''t tried but: VK_1 - 9 doesn''t work.
Neither does VK_A to VK_Z. It only shows this error:
Error C2065: ''VK_1'' : undeclared identifier
What''s wrong?
"To some its a six-pack, to me it's a support group."
The problem is the keys A-Z and 0-9 don''t have virtual key codes that begin with VK_. You''ll have to use the numeric constants for those keys.
Alex
Alex
Alexbigshot@austin.rr.comFoolish man give wife grand piano. Wise man give wife upright organ.
Those keys follow Ascii constants.
---------------------------
"Don't die for your country, make some other dumb bastard die for his" -General George S. Patton
---------------------------
"Don't die for your country, make some other dumb bastard die for his" -General George S. Patton
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement