Keyboard

Started by Jakibah, November 14, 2015, 18:19:42

Previous topic - Next topic

Jakibah

I have this code in my update():
if(Keyboard.getEventKey() == Keyboard.KEY_T && Keyboard.getEventKeyState()){
System.out.println("true");


And I want it to print 1 time true. But it prints 4 times.
How can i solve this problem???

abcdef

Which version of LWJGL are you using? Sounds like you want to check if the key event is a repeat event or not.

quew8

Question has been answered on JGO.