KeyInputEvent docs says:
public boolean isRepeating()
Returns true if this event is a repeat event. Not used anymore.
I tried and it works as I expect - jME start spawning event with this flag after holding key for about half of a second.
What does mean “Not used anymore”?
I suspect it’s just wrong. The javadoc was added like that 9 years ago but all of the code that has ‘repeating’ information will pass that flag to the constructor of KeyInputEvent().
Can confirm. I’ve gone through the input code a few times and isRepeating is a common occurrence. It is most certainly still used.
Is it ok to make such small PRs for every mistake (if it’s mistake, of course) I found in engine during developing of my game?
May 27, 2020, 6:08pm
Constructive PRs are always welcome, no matter how small.
Small PRs are generally preferable to large ones - it’s easy to review, accept, discuss, correct, or reject small changes without having lots of changes causing noise or being affected by one small thing that needs changes or should be rejected.
July 22, 2020, 8:57pm
I integrated the PR. Sorry this took so long!