Hello.
I'm trying to write a program where when you press a certain key within console it will then display a message.
I believe the issue lies within VK_W, I just have a feeling this isn't correct. Can someone help me find a solution to this?
I'm trying to write a program where when you press a certain key within console it will then display a message.
C++:
if(GetAsyncKeyState(VK_W)) {
std::cout << "You pressed W" << std::endl;
}
I believe the issue lies within VK_W, I just have a feeling this isn't correct. Can someone help me find a solution to this?