Hello guys, I just registered here, to ask you a question.
I’m trying to make input handler, and I’m using keys[e.getKeyCode] etc for it.
My question is, how to make isKeyPressed method, where it detects if key is pressed, but returns true just once ?
For example, I have int variable number. When I press and hold key space, it should add 1 to number, but only once, no matter how long i hold the spacebar.
I hope you can help me !