Quantcast
Channel: Questions in topic: "keyboard"
Viewing all articles
Browse latest Browse all 605

Checking if two random keys are pressed at the same time?

$
0
0
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!

Viewing all articles
Browse latest Browse all 605

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>