Skip to main content
GameDev.net gamedev.net
🔒 Locked

Complex issues I need help with!

Started by Zero Point One Dec 9, 2001 at 10:35 AM 2 replies 300+ views
Original Post
Zero Point One
Zero Point One
I need help with a number of advanced areas in C++! Well, to me they are advance, maybe not to some of you. One thing I need help with is how to input a key and have the program detect that key and it will do something when it detects it. There is something like that isn''t there? For example, if I made a snake game I would hit the "<--" key to make the snake turn left. Please help me out on how I can do these things!! Either supplying me with a link to a site that has information on this, or help me out yourself. My ICQ is 143079053.
Andrew Nguyen
Andrew Nguyen
eastcoastgames.com
^^^^^^^^^^^^^^^^^^
||||||||||||||||||




Yes, it''s true,
there should be
a Java-Python-C++ language called Japyc
or (Jah-PIC)
---START GEEK CODE BLOCK---GCS/M/S dpu s:+ a---- C++ UL(+) P(++) L+(+) E--- W++ N+ o K w(--) !O !M !V PS- PE+Y+ PGP+ t 5 X-- R tv+ b+ DI+ D G e* h! r-- !x ---END GEEK CODE BLOCK---
python_regious
python_regious
GetAsyncKeyState() should be fine for a simple snake game. For anything more advanced though, look into DirectInput.
If at first you don't succeed, redefine success.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.