How do i make the program to recognize the certain keys I press? To understand the context: I want to make a game in C (very basic game), so in order to move the object, I want to pres (W A S D),I know how to move it, but I don't know how to make the program understand that I want to do a certain action, when one of those keys are pressed. For example:
if( key == "A"){
x++
}
I know it dose not work like that, but something at least similar.