Tagged Questions
-2
votes
0answers
38 views
KeyListener with CardLayout [closed]
I want to creat a simple game but I'm having problems with KeyListener.
public class Vliegtuig
{
private int XPositie,YPositie, XSnelheid, YSnelheid;
ImageIcon vliegtuigrechts, ...
1
vote
1answer
123 views
Handling multiple pressed keys with KeyListeners
I'm making a game Applet with Java that uses KeyListeners to control a paddle (for a game like Breakout/Pong). My basic implementation goes like this:
public void keyPressed(KeyEvent e) {
switch ...
1
vote
2answers
125 views
What is a library for event-driven mouse and keyboard input in Java?
The title basically says it all.
The only thing to take into consideration is it needs to be cross platform.