Key Press Events on Forms?

Hey,

Can anyone point me to a good tutorial on how to capture key presses on forms?

Part of my game has a form on display and I need to know when the key ‘5’ is pressed?

I thin it might be something to do with the itemStateListener but im not sure?

Cheers

Rich

It can’t be done. If you want keyPressed() you need a Canvas. The closest you can get is using a CustonItem, but then you’ll only receive the input if the CustomItem is focussed.

shmoove

Cheers Schmoove,

I’m on MIDP 1.0 anyway…

Bloddy J2ME ???

Rich