• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Javame touch screen control.

 
Greenhorn
Posts: 16
Ruby Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to know how to get the xy co-ordinates where my finger touches my screen.

This will allow me to do ANYTHING (based on touching..)

Yeah.. Touchness.. Cheers.
 
Saloon Keeper
Posts: 25653
183
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's no built-in touchscreen API for Java ME, although some devices might include their own proprietary ones.

However, the touchscreen is normally presented as though it was a mouse device.

The downside to mouse-like-ness is that mice don't pinch/stretch, but that's a fairly new concept on any mobile platform.
 
Will Richardson
Greenhorn
Posts: 16
Ruby Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK.. Is the mouse-like API built in? There is almost no chance my phone has its own touch API.
 
Tim Holloway
Saloon Keeper
Posts: 25653
183
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Will Richardson wrote:OK.. Is the mouse-like API built in? There is almost no chance my phone has its own touch API.



I'd have to RTFM for the particular JME profile you're running, but it's a good bet.
 
Will Richardson
Greenhorn
Posts: 16
Ruby Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found an example on roseIndia which seems to work, but i cannot simulate it on my computer (with eclipse)
 
Will Richardson
Greenhorn
Posts: 16
Ruby Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This one - make sure you read the comment at the bottom:http://roseindia.net/j2me/pointer.shtml
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic