Wednesday, April 05, 2006

Detecting Stylus Event?

Does anyone have some sample code of how to get the stylus position on the touch screen if the user taps on the screen? I only found out how to use the joystick and other buttons so far.

3 Comments:

Blogger Frank said...

You can use LWT. It has a pointerPressed method on all components. I'll email out a new midp.zip later this evening that has the lwt classes in it.

5:16 PM  
Blogger Lisa Hui said...

Both Philip and I tried the midp.zip file emailed to the class list, but replacing the existing midp.zip file in EmulatorM.3/lib folder causes problems in Eclipse (namely, Eclipse is unable to load any device/platform configurations, so MIDlets won't run, no selectable platforms appear in the creation wizard, etc).

4:36 PM  
Blogger Dmitry said...

when you replace the midp.zip file, you may noticee that midp namespace is appended to everything inside the zip file. For example, when it should be com.motorola.lwt, the replacement has midp.cop.motorola.lwt. this messed up all references. Is there anyw ay to fix this?

7:53 PM  

Post a Comment

<< Home