When I do this code Type.KeyRelease is detected but never Type.KeyPress, why is that ?
f.addKeyListener(RIGHT, new ActionListener() { public void actionPerformed(ActionEvent evt) { _("///////RIGHT PRESSED."); if (evt.getEventType()==Type.KeyPress) { _("PRESS"); game.keyPressed(DDragon.KEYCODE_RIGHT); } if (evt.getEventType()==Type.KeyRelease) { _("RELEASE"); game.keyReleased(DDragon.KEYCODE_RIGHT); } } }); -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/5bfeae99-2149-44f8-8377-ba889ffbd1b9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.