Multi key input for videogame?
in
Programming Questions
•
2 years ago
Right now I'm using,
if(keyPressed) {
if(key == 's' || key == 'S') {
// Move
}
}
and so with the WASD keys i can only get movement in one direction. Any help would be appreciated.
1