Hi!
I'm developing a game in which there are two lights. If you press the correct right key and the correct left key at the same time (on your keyboard), both lights are turned on and bomb is deactivated.
The thing is the keys to be pressed are generated randomly at the beginning of the game. How can I check if they are both pressed at the same time? Maybe I can get the KeyCode of the keys to be pressed somehow?
Thanks!
↧