Multiple keyboard presses
I am currently working on a multiplayer air hockey game which, if played by two human players from the same computer, requires the two paddles to be controlled from the same keyboard by each player (for instance).
I have created two classes which extend the Behavior class, each controlling each two paddles. processStimulus() is called every time a key is pressed however, no two keys can be pressed at once, so the game is unplayable. Is there a way to allow multiple key presses?