I have this code in my update()
if(Keyboard.getEventKey() == Keyboard.KEY_T && Keyboard.getEventKeyState()){
System.out.println("true");
But when I press T it prints 4 times I want it to print only 1 time.
How can I solve this???
I have this code in my update()
if(Keyboard.getEventKey() == Keyboard.KEY_T && Keyboard.getEventKeyState()){
System.out.println("true");
But when I press T it prints 4 times I want it to print only 1 time.
How can I solve this???