how to enable keyRepeated event in my GameCanvas,its not working although I set my GameCanvas constructor boolean to false.
Actually I want to know How I can print letters on the GameCanvas when I press keys,for example I want to display my name on the GameCanvas when I press mobile keys.
Have you tried the drawString() method in Canvas?
Did you implement the keyRepeated() method on your gamecanvas?
Did you set the gamecanvas to the current display?
( Display.getDisplay(midlet).setCurrent(gamecanvas); )
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.