I have written code that detects which key that has been pressed.
@Override
public void keyPressed(KeyEvent e) {
int code = e.getKeyCode();
String name = KeyEvent.getKeyText(code);
tArea.append(name + " pressed\n");
}
This code works fine. But on my keyboard, that is a circle that can be used to stop a song that is playing in mediaplay, start the song (and pause the song as well), change to next song, and go back to previous song. Many keyboards have this button. But when I press a button from this circle, it says:
Unknown keycode: 0x0 pressed
.
Is there a way I can get this key? I need to know what it is, since I am writing a program that should automatically press on of these keys.
Thanks in advance