Skip to main content

enable keyRepeated

3 replies [Last post]
waseemcom213
Offline
Joined: 2009-03-18
Points: 0

how to enable keyRepeated event in my GameCanvas,its not working although I set my GameCanvas constructor boolean to false.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
waseemcom213
Offline
Joined: 2009-03-18
Points: 0

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.

jaywayjohan
Offline
Joined: 2008-06-18
Points: 0

Have you tried the drawString() method in Canvas?

Regards
Johan

sfitzjava
Offline
Joined: 2003-06-15
Points: 0

Did you implement the keyRepeated() method on your gamecanvas?
Did you set the gamecanvas to the current display?
( Display.getDisplay(midlet).setCurrent(gamecanvas); )

-Shawn