I followed the tutorial on http://zetcode.com/tutorials/javagamestutorial/movingsprites/ pretty much line for line but I have this weird bug I just can’t fix.
My little program runs fine on my computer and I can move things around on the screen, but when I move to my laptop with the same program - everything works fine except the key detection.
I’ve tried debugging it like so and nothing happens at all.
public void keyPressed(KeyEvent e) {
System.out.println(1);
player.keyPressed(e);
}
This problem only exists on my laptop and works fine on other computers.
My laptop has JDK/JRE up to date and now I have no other solutions to try but to post here.