Is there a way I can check if any key is held down and return the key that’s held down?
switch (GetKeyDown())
{
// UP
case KEY_W:
case KEY_UP:
verticalInput = -1;
break;
// RIGHT
case KEY_D:
case KEY_RIGHT:
horizontalInput = 1;
break;
// DOWN
case KEY_S:
case KEY_DOWN:
verticalInput = 1;
break;
// LEFT
case KEY_A:
case KEY_LEFT:
horizontalInput = -1;
break;
default:
horizontalInput = 0;
verticalInput = 0;
break;
}