Advertisement

Check the ALT-key ?

Started by January 26, 2001 10:16 AM
2 comments, last by SnAkE 23 years, 9 months ago
I want to modify lesson 11 that way, that it checks for the alt key being pressed. But if i check: if (keys[VK_ALT]) i get an error message...(VK_DOWN works fine) Thanx SnAkE''s Programming Resources
The correct virtual key constant is VK_MENU.

---
Visit Particle Stream Studios - Home of Europa, Tachyon and winSkin
---Visit InterfaceFX - Home of Europa, Tachyon and winSkin
Advertisement
OK, so far so good...
if i press the right alt-key, my character moves forward, but doesn''t stop when i release the key.
If i use the left one, nothing happens.
(VK_LMENU doesn''t work either)

Thank you, for your help
SnAkE''s Programming Resources
Here

http://msdn.microsoft.com/library/ddkdoc/wceddk/app_b_1.htm

you can find all the Vitual Key and there responding hex number

Hope this helps

This topic is closed to new replies.

Advertisement