Name: Anonymous 2010-09-19 19:51
So i'm messing around with the keyListener for java and here's my method:
my output
Is java really this broken?
public void keyPressed(KeyEvent x)
{
System.out.println(x.getKeyChar());
System.out.println((int)x.getKeyChar());
System.out.println(x.getKeyCode());
System.out.println((char)x.getKeyCode());
keys[(int)x.getKeyChar()]=1;
}my output
a
97
65
AIs java really this broken?