I am a bit of a n00b when it comes to game coding and using keyboard input. I have some skills, but they were always used for company purposes (writing stuff to search through a lot of files and those kind of things).
I have a game which is a game about shooting a gun by holding a button. The longer you hold the button, the further the gun shoots.
Two players can play this game.
However, right now, when one player pushes the button, the other can't because the program is running some code for that button input.
How can I make it so that both players can use the controls at the same time?