0
votes

I am creating application for touch devices for nokia.
J2ME provides methods pointerPressed, released and dragged on canvas.

I have generated a canvas in full screen mode having commands.
On click of "option" command, another command menu opens, which is having commands like Ok, Back, Next.

Now to get the event of sub command menu I have to get that which command is clicked.

My question is how can I get that particular command has been clicked?
Application is for N97/Music express (no keyboard support). I just want the way out using touch functionality.
keyPressed event is not at all useful for me.

1
Did you see something on SVG (JSR226) or LWUIT? - user435489

1 Answers

1
votes

If you have pointer events, then look at the co-ordinates of the event, and check to see whether it lies within where you're drawing your menu option on the canvas.