Java applet game design no keyboard focus
- by Sri Harsha Chilakapati
THIS IS PROBABLY THE WRONG PLACE. POSTED ITHERE (STACKOVERFLOW)
I'm making an applet game and it is rendering, the game loop is running, the animations are updating, but the keyboard input is not working. Here's an SSCCE.
public class Game extends JApplet implements Runnable {
public void init(){
// Initialize the game when called by…