InterviewSolution
| 1. |
Solve : not using cin?? |
|
Answer» Im making a game in C++, and I need something to the effect of: if(ButtonPressed(Left)){DoThis();} Got any ideas?Like, instead of the user having to TYPE "L" and then press ENTER, being able to just press the left arrow key? Any way to do this in C++?GetAsyncKeyState()Not got a chance to try it yet, but if it WORKS (and I dont doubt it will)... Thank you, thank you, thank you, and thank you again!it is a windows API function. you will need to include "windows.h". |
|