I\'m making 2D games in Java. I want my game to use keyboard and gamepad too. I have no idea how to do this. I have to check if player pressed any of buttons and get joysticks\'