Pressing multiple buttons at the same time
843806Dec 7 2007 — edited Dec 8 2007I've been using the "KeyListener" interface to detect key presses for my game. So far I've been able to make a character move around the screen with the arrow keys. But now I want the player to be able to press two arrow keys at once and go in a diagonal direction. This isn't possible with the "KeyListener" class though. I heard in the "New to Java" forum that I should use the a key binding class, but I looked into it and it said it was manipulated by a different class and only worked in the background. Now I'm stuck. What class does this?