The Keyboard class only has Keyboard.keyPressed. How do I test for released or typed. I dont think you can add a listener to the Display’s drawable, but even if you can it would be great if I could stick with Keyboard-class. Its nice and easy to use!
does this help?
int events = Keyboard.getNumKeyboardEvents();
for(int i=0; i<events; i++){
if(!Keyboard.next()) break;
int key = Keyboard.getEventKey();
//true if was pressed, false if was released
boolean pressed = Keyboard.getEventKeyState();
if(!pressed && key == Keyboard.KEY_ESCAPE)
finished = true;
if(!pressed && key == Keyboard.KEY_F){
fullscreen = !fullscreen;
try {
Display.setFullscreen(fullscreen);
}
catch(Exception e) {
e.printStackTrace();
}
}
if(!pressed && key == Keyboard.KEY_Z)
wireframe = !wireframe;
}
Yes it worked, thanks! 