Hello again all,
Since the last time I posted I made some progress on the newt side. However I ran into a KeyEvent X11 related problem ( described
here ). I implemented a variation of the solution ( not all was available to newt, and I didn't want to import the swing's timer ), however I still have two key events when I only push once.
I put the minimum delay between two KEY_PRESSED event to 50ms, but here the second event ( the automatic one ) comes after 500ms ( I verified, no other events are passed between the first and the second ).
See the log :
19:00:17.901 [main] DEBUG o.b.keeper.application.Application - Starting main loop...
19:00:18.522 [main-Display-X11_:0.0-1-EDT-1] DEBUG o.b.k.i.n.NewtKeyboardListenerImpl - Key z pressed, processing GO_FORWARD.
19:00:19.022 [main-Display-X11_:0.0-1-EDT-1] DEBUG o.b.k.i.n.NewtKeyboardListenerImpl - Key z pressed, processing GO_FORWARD.
19:00:21.026 [Timer-0] DEBUG o.b.k.i.n.NewtKeyboardListenerImpl - Key z released, processing GO_FORWARD.
Anyway the point of this is : is there already a method in newt that can disable the KeyEvent repeat that I may have missed ?
Thanks in advance
NB: The implementation of the class in charge of the keyboard
is here on github