I have a question - Is it possible to solve discussed problem of getting which key is pressed by using switch operator? With something like this (It is not working, of course, but maybe some solution is possible?):
switch (input.getkey())
{
case KeyCode.A:
print("Rotate left");
break;
case KeyCode.D:
print("rotate right");
break;
case KeyCode.D & KeyCode.A:
print("Can't rotate in both directions");
break;
case KeyCode.Space:
print("Space is pressed");
break;
}
Thanks!